summaryrefslogtreecommitdiff
path: root/testenv/tests
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-06 08:47:43 +0300
committerDevaev Maxim <[email protected]>2020-09-07 05:54:25 +0300
commita6dac4bd8495bc04f762a3ad415d301fb10498c9 (patch)
treeea81c6a9a9ea2521cc4b9bdfaee9b00d5b6e9c6d /testenv/tests
parente8bd1e264822967e1ddc628bf507664a5f4b9679 (diff)
ugpio plugins
Diffstat (limited to 'testenv/tests')
-rw-r--r--testenv/tests/test_gpio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testenv/tests/test_gpio.py b/testenv/tests/test_gpio.py
index 6a02816d..3db61609 100644
--- a/testenv/tests/test_gpio.py
+++ b/testenv/tests/test_gpio.py
@@ -29,7 +29,7 @@ from kvmd import gpio
@pytest.mark.parametrize("pin", [0, 1, 13])
def test_ok__loopback_initial_false(pin: int) -> None:
with gpio.bcm():
- assert gpio.set_output(pin) == pin
+ assert gpio.set_output(pin, False) == pin
assert gpio.read(pin) is False
gpio.write(pin, True)
assert gpio.read(pin) is True
@@ -53,6 +53,6 @@ def test_ok__input(pin: int) -> None:
def test_fail__invalid_pin() -> None:
with pytest.raises(AssertionError):
- gpio.set_output(-1)
+ gpio.set_output(-1, False)
with pytest.raises(AssertionError):
gpio.set_input(-1)