Skip to content

Commit ec581c0

Browse files
committed
Try test4
1 parent 213e320 commit ec581c0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/test_usb.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,22 +2192,20 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
21922192
assert not test_scan.scan_config_task_scheduled
21932193
assert await test_scan.set_motion_reset_timer(15)
21942194
assert test_scan.scan_config_task_scheduled
2195-
# Requested update
2196-
assert test_scan.motion_config.reset_timer == 15
2197-
assert test_scan.reset_timer == 15
2198-
# Present value
2199-
assert test_scan._motion_config.reset_timer == 10
2195+
# Update failed due to None response
2196+
assert test_scan.motion_config.reset_timer == 10
2197+
assert test_scan.reset_timer == 10
22002198

22012199
# Restore to original settings after failed config
2202-
await test_scan.set_motion_reset_timer(15)
2200+
#await test_scan.set_motion_reset_timer(15)
22032201
awake_response1 = pw_responses.NodeAwakeResponse()
22042202
awake_response1.deserialize(
22052203
construct_message(b"004F1298347650AFBECD00", b"FFFE")
22062204
)
22072205
mock_stick_controller.send_response = scan_config_failed
22082206
await test_scan._awake_response(awake_response1) # pylint: disable=protected-access
22092207
await asyncio.sleep(0.001) # Ensure time for task to be executed
2210-
assert test_scan.scan_config_task_scheduled # not
2208+
assert not test_scan.scan_config_task_scheduled
22112209
assert test_scan.motion_config.reset_timer == 10
22122210
assert test_scan.reset_timer == 10
22132211

0 commit comments

Comments
 (0)