Skip to content

Commit 0e0e4af

Browse files
committed
update and fix testing
1 parent 58046c2 commit 0e0e4af

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/test_usb.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ async def node_motion_state(
548548
)
549549

550550
@pytest.mark.asyncio
551-
async def test_stick_node_discovered_subscription(
551+
async def test_stick_node_discovered_subscription( # noqa: PLR0915
552552
self, monkeypatch: pytest.MonkeyPatch
553553
) -> None:
554554
"""Testing "new_node" subscription for Scan."""
@@ -2644,14 +2644,7 @@ async def test_node_discovery_and_load( # noqa: PLR0915
26442644
# endregion
26452645

26462646
# region Switch
2647-
self.test_node_loaded = asyncio.Future()
2648-
unsub_loaded = stick.subscribe_to_node_events(
2649-
node_event_callback=self.node_loaded,
2650-
events=(pw_api.NodeEvent.LOADED,),
2651-
)
26522647
mock_serial.inject_message(b"004F888888888888888800", b"FFFE")
2653-
assert await self.test_node_loaded
2654-
unsub_loaded()
26552648

26562649
assert stick.nodes["8888888888888888"].node_info.firmware == dt(
26572650
2011, 6, 27, 9, 4, 10, tzinfo=UTC

0 commit comments

Comments
 (0)