To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 6e73432c authored by Henrik Menne's avatar Henrik Menne
Browse files

test get digital output

parent 6b9f1b19
......@@ -228,10 +228,10 @@ def test_get_cal_current_source(started_dev_comm):
def test_get_digital_input(started_dev_comm_with_t4):
lj, com = started_dev_comm_with_t4
com.put_name("EIO0", 0.0)
assert lj.get_digital_input("EIO0") == 0
com.put_name("EIO0", 1.0)
assert lj.get_digital_input("EIO0") == 1
com.put_name("EIO0", LabJack.DIOStatus.LOW)
assert lj.get_digital_input("EIO0") == LabJack.DIOStatus.LOW
com.put_name("EIO0", LabJack.DIOStatus.HIGH)
assert lj.get_digital_input("EIO0") == LabJack.DIOStatus.HIGH
com.put_name("EIO0", 2.0)
with pytest.raises(LabJackIdentifierDIOError):
lj.get_digital_input("EIO0")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment