Address review comments #74
5 fail, 1 244 skipped, 357 pass in 11m 52s
Annotations
Check warning on line 0 in test.test_ad7091rx
github-actions / Test Results
test_ad7091rx_attr_single_value[voltage0-raw-adi.ad7091rx] (test.test_ad7091rx) failed
results.xml [took 3s]
Raw output
AttributeError: 'ad7091rx' object has no attribute 'voltage0'
test_attribute_single_value_channel_readonly = <function attribute_single_value_channel_readonly at 0x7ff8b0028280>
iio_uri = 'ip:10.1.0.22', classname = 'adi.ad7091rx', channel = 'voltage0'
attr = 'raw'
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"channel, attr", [("voltage0", "raw"), ("voltage1", "raw"),],
)
def test_ad7091rx_attr_single_value(
test_attribute_single_value_channel_readonly, iio_uri, classname, channel, attr
):
> test_attribute_single_value_channel_readonly(iio_uri, classname, channel, attr)
test/test_ad7091rx.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:656: in attribute_single_value_channel_readonly
sdr = eval(classname + "(uri='" + uri + "')." + channel + "")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E AttributeError: 'ad7091rx' object has no attribute 'voltage0'
<string>:1: AttributeError
Check warning on line 0 in test.test_ad7091rx
github-actions / Test Results
test_ad7091rx_attr_single_value[voltage1-raw-adi.ad7091rx] (test.test_ad7091rx) failed
results.xml [took 0s]
Raw output
AttributeError: 'ad7091rx' object has no attribute 'voltage1'
test_attribute_single_value_channel_readonly = <function attribute_single_value_channel_readonly at 0x7ff8b0028280>
iio_uri = 'ip:10.1.0.22', classname = 'adi.ad7091rx', channel = 'voltage1'
attr = 'raw'
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"channel, attr", [("voltage0", "raw"), ("voltage1", "raw"),],
)
def test_ad7091rx_attr_single_value(
test_attribute_single_value_channel_readonly, iio_uri, classname, channel, attr
):
> test_attribute_single_value_channel_readonly(iio_uri, classname, channel, attr)
test/test_ad7091rx.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:656: in attribute_single_value_channel_readonly
sdr = eval(classname + "(uri='" + uri + "')." + channel + "")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E AttributeError: 'ad7091rx' object has no attribute 'voltage1'
<string>:1: AttributeError
Check warning on line 0 in test.test_ad7091rx
github-actions / Test Results
test_ad7091rx_raw_attr[raw-0-4000-1000-1-3-voltage0-adi.ad7091rx] (test.test_ad7091rx) failed
results.xml [took 0s]
Raw output
AttributeError: voltage0 not defined in adi.ad7091rx
test_attribute_single_value = <function attribute_single_value at 0x7ff8b00318b0>
iio_uri = 'ip:10.1.0.22', classname = 'adi.ad7091rx', attr = 'raw', start = 0
stop = 4000, step = 1000, tol = 1, repeats = 3, sub_channel = 'voltage0'
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol, repeats, sub_channel",
[
("raw", 0, 4000, 1000, 1, 3, "voltage0"),
("raw", 0, 4000, 1000, 1, 3, "voltage1"),
("raw", 0, 4000, 1000, 1, 3, "voltage2"),
],
)
def test_ad7091rx_raw_attr(
test_attribute_single_value,
iio_uri,
classname,
attr,
start,
stop,
step,
tol,
repeats,
sub_channel,
):
> test_attribute_single_value(
iio_uri, classname, attr, start, stop, step, tol, repeats, sub_channel
)
test/test_ad7091rx.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:66: in attribute_single_value
assert dev_interface_sub_channel(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
uri = 'ip:10.1.0.22', classname = 'adi.ad7091rx', sub_channel = 'voltage0'
val = 0, attr = 'raw', tol = 1, readonly = False, sleep = 0
def dev_interface_sub_channel(
uri, classname, sub_channel, val, attr, tol, readonly=False, sleep=0,
):
sdr = eval(classname + "(uri='" + uri + "')")
# Check hardware
if not hasattr(sdr, sub_channel):
> raise AttributeError(sub_channel + " not defined in " + classname)
E AttributeError: voltage0 not defined in adi.ad7091rx
test/common.py:154: AttributeError
Check warning on line 0 in test.test_ad7091rx
github-actions / Test Results
test_ad7091rx_raw_attr[raw-0-4000-1000-1-3-voltage1-adi.ad7091rx] (test.test_ad7091rx) failed
results.xml [took 0s]
Raw output
AttributeError: voltage1 not defined in adi.ad7091rx
test_attribute_single_value = <function attribute_single_value at 0x7ff8b00318b0>
iio_uri = 'ip:10.1.0.22', classname = 'adi.ad7091rx', attr = 'raw', start = 0
stop = 4000, step = 1000, tol = 1, repeats = 3, sub_channel = 'voltage1'
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol, repeats, sub_channel",
[
("raw", 0, 4000, 1000, 1, 3, "voltage0"),
("raw", 0, 4000, 1000, 1, 3, "voltage1"),
("raw", 0, 4000, 1000, 1, 3, "voltage2"),
],
)
def test_ad7091rx_raw_attr(
test_attribute_single_value,
iio_uri,
classname,
attr,
start,
stop,
step,
tol,
repeats,
sub_channel,
):
> test_attribute_single_value(
iio_uri, classname, attr, start, stop, step, tol, repeats, sub_channel
)
test/test_ad7091rx.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:66: in attribute_single_value
assert dev_interface_sub_channel(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
uri = 'ip:10.1.0.22', classname = 'adi.ad7091rx', sub_channel = 'voltage1'
val = 0, attr = 'raw', tol = 1, readonly = False, sleep = 0
def dev_interface_sub_channel(
uri, classname, sub_channel, val, attr, tol, readonly=False, sleep=0,
):
sdr = eval(classname + "(uri='" + uri + "')")
# Check hardware
if not hasattr(sdr, sub_channel):
> raise AttributeError(sub_channel + " not defined in " + classname)
E AttributeError: voltage1 not defined in adi.ad7091rx
test/common.py:154: AttributeError
Check warning on line 0 in test.test_ad7091rx
github-actions / Test Results
test_ad7091rx_raw_attr[raw-0-4000-1000-1-3-voltage2-adi.ad7091rx] (test.test_ad7091rx) failed
results.xml [took 0s]
Raw output
AttributeError: voltage2 not defined in adi.ad7091rx
test_attribute_single_value = <function attribute_single_value at 0x7ff8b00318b0>
iio_uri = 'ip:10.1.0.22', classname = 'adi.ad7091rx', attr = 'raw', start = 0
stop = 4000, step = 1000, tol = 1, repeats = 3, sub_channel = 'voltage2'
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize(
"attr, start, stop, step, tol, repeats, sub_channel",
[
("raw", 0, 4000, 1000, 1, 3, "voltage0"),
("raw", 0, 4000, 1000, 1, 3, "voltage1"),
("raw", 0, 4000, 1000, 1, 3, "voltage2"),
],
)
def test_ad7091rx_raw_attr(
test_attribute_single_value,
iio_uri,
classname,
attr,
start,
stop,
step,
tol,
repeats,
sub_channel,
):
> test_attribute_single_value(
iio_uri, classname, attr, start, stop, step, tol, repeats, sub_channel
)
test/test_ad7091rx.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/attr_tests.py:66: in attribute_single_value
assert dev_interface_sub_channel(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
uri = 'ip:10.1.0.22', classname = 'adi.ad7091rx', sub_channel = 'voltage2'
val = 4000, attr = 'raw', tol = 1, readonly = False, sleep = 0
def dev_interface_sub_channel(
uri, classname, sub_channel, val, attr, tol, readonly=False, sleep=0,
):
sdr = eval(classname + "(uri='" + uri + "')")
# Check hardware
if not hasattr(sdr, sub_channel):
> raise AttributeError(sub_channel + " not defined in " + classname)
E AttributeError: voltage2 not defined in adi.ad7091rx
test/common.py:154: AttributeError