Skip to content

Commit 2ee9d07

Browse files
committed
Fix testing
1 parent 2b3ec02 commit 2ee9d07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_usb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ async def test_stick_connect(self, monkeypatch: pytest.MonkeyPatch) -> None:
469469
assert stick.accept_join_request is None
470470
# test failing of join requests without active discovery
471471
with pytest.raises(pw_exceptions.StickError):
472-
stick.accept_join_request = True
472+
await setattr(stick.accept_join_request, "attrib", True)
473473
unsub_connect()
474474
await stick.disconnect()
475475
assert not stick.network_state
@@ -572,7 +572,7 @@ async def test_stick_node_discovered_subscription(
572572
await stick.connect()
573573
await stick.initialize()
574574
await stick.discover_nodes(load=False)
575-
stick.accept_join_request = True
575+
await setattr(stick.accept_join_request, "attrib", True)
576576
self.test_node_awake = asyncio.Future()
577577
unsub_awake = stick.subscribe_to_node_events(
578578
node_event_callback=self.node_awake,

0 commit comments

Comments
 (0)