Skip to content

Commit 256d7a3

Browse files
authored
create routemap in test
1 parent 67eaa1e commit 256d7a3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/v16/test_v16_charge_point.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,19 @@ async def test_route_message_not_supported(base_central_system, notsupported_cal
115115
not supported by OCPP version.
116116
117117
"""
118+
@on(Action.BootNotification)
119+
def on_boot_notification(**kwargs): # noqa
120+
assert kwargs["firmware_version"] == "#1:3.4.0-2990#N:217H;1.0-223"
121+
122+
return call_result.BootNotificationPayload(
123+
current_time="2018-05-29T17:37:05.495259",
124+
interval=350,
125+
# 'Yolo' is not a valid value for for field status.
126+
status="Yolo",
127+
)
128+
129+
setattr(base_central_system, "on_boot_notification", on_boot_notification)
130+
base_central_system.route_map = create_route_map(base_central_system)
118131

119132
await base_central_system.route_message(notsupported_call)
120133
base_central_system._connection.send.assert_called_once_with(

0 commit comments

Comments
 (0)