Skip to content

Commit

Permalink
Add test for AD7124-8
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Nov 22, 2023
1 parent adec4bb commit 8631244
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test_ad7124_8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import adi
import pytest

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):
assert dev.rx_channel_names[chan_i] == f"voltage{str(chan_i)}"

0 comments on commit 8631244

Please sign in to comment.