Skip to content

Commit 74286fb

Browse files
committed
Test_usb: add missing switch-asserts
1 parent 67b30e7 commit 74286fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_usb.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,6 +2630,12 @@ async def test_node_discovery_and_load(
26302630
pw_api.NodeFeature.SWITCH,
26312631
)
26322632
)
2633+
assert state[pw_api.NodeFeature.AVAILABLE].state
2634+
assert state[pw_api.NodeFeature.BATTERY].maintenance_interval == 60
2635+
assert state[pw_api.NodeFeature.BATTERY].awake_duration == 10
2636+
assert not state[pw_api.NodeFeature.BATTERY].clock_sync
2637+
assert state[pw_api.NodeFeature.BATTERY].clock_interval == 25200
2638+
assert state[pw_api.NodeFeature.BATTERY].sleep_duration == 60
26332639
# endregion
26342640

26352641
# test disable cache

0 commit comments

Comments
 (0)