Skip to content

Commit 457f78a

Browse files
committed
Adapt and clean-up test-asserts
1 parent 14fce87 commit 457f78a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/test_usb.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ async def test_stick_connect(self, monkeypatch: pytest.MonkeyPatch) -> None:
461461
assert stick.mac_stick == "0123456789012345"
462462
assert stick.mac_coordinator == "0098765432101234"
463463
assert stick.firmware_stick == dt(2011, 6, 27, 8, 47, 37, tzinfo=UTC)
464-
assert stick.hardware_stick == "653907008512"
464+
assert stick.hardware_stick == "070085"
465465
assert not stick.network_discovered
466466
assert stick.network_state
467467
assert stick.network_id == 17185
@@ -578,11 +578,6 @@ async def test_stick_node_discovered_subscription(
578578
events=(pw_api.NodeEvent.AWAKE,),
579579
)
580580

581-
assert stick.firmware_stick == dt(
582-
2011, 6, 27, 8, 47, 37, tzinfo=UTC
583-
)
584-
assert stick.hardware_stick == "653907008512"
585-
586581
# Inject NodeAwakeResponse message to trigger a 'node discovered' event
587582
mock_serial.inject_message(b"004F555555555555555500", b"FFFE")
588583
mac_awake_node = await self.test_node_awake

0 commit comments

Comments
 (0)