]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp-server): audit-driven test improvements
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 11:20:08 +0000 (12:20 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 11:20:08 +0000 (12:20 +0100)
commit08325b09d13f38caf769bf20ef255f01cf9d687a
tree896030dd5ea96e5f7e006811aace5200cae1c82b
parentf3b4d70f110134f0b32cccfc439e0876fceae38d
refactor(ocpp-server): audit-driven test improvements

- Extract mock_valid_ws and rate_limit_charge_point fixtures (DRY)
- Replace inline blacklist AuthConfig with existing fixture
- Strengthen log assertions using caplog.records with level checks
- Add edge case tests: empty token in whitelist/blacklist modes
- Add test for unknown transaction event type (case _ branch)
Coverage: 90.18% → 90.98%, 159 → 162 tests.
tests/ocpp-server/test_server.py