Skip to content

Commit 46410fe

Browse files
committed
Test set_relay_lock() protection
1 parent 0a7211f commit 46410fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_usb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,9 @@ async def test_node_relay_and_power(self, monkeypatch: pytest.MonkeyPatch) -> No
775775
with pytest.raises(pw_exceptions.NodeError):
776776
await stick.nodes["0098765432101234"].set_relay(True)
777777

778+
with pytest.raises(pw_exceptions.NodeError):
779+
await stick.nodes["0098765432101234"].set_relay_lock(True)
780+
778781
# Manually load node
779782
assert await stick.nodes["0098765432101234"].load()
780783

0 commit comments

Comments
 (0)