From 20bf3cf7b07f4706edb109b4d19c93d66923aefc Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" Date: Wed, 22 Nov 2023 11:59:05 -0700 Subject: [PATCH] Add test for AD7124-8 Signed-off-by: Travis F. Collins --- test/test_ad7124_8.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/test_ad7124_8.py diff --git a/test/test_ad7124_8.py b/test/test_ad7124_8.py new file mode 100644 index 000000000..247d9887d --- /dev/null +++ b/test/test_ad7124_8.py @@ -0,0 +1,15 @@ +import pytest +import adi + +hardware = "ad7124-8" +classname = "adi.ad7124" + + +######################################### +@pytest.mark.iio_hardware(hardware) +def test_ad7124_8_channels(iio_uri): + dev = adi.ad7124(uri=iio_uri) + + for chan_i in range(16): + dev.rx_channel_names[chan_i] == "voltage" + str(chan_i) +