Skip to content

Address review comments #70

Address review comments

Address review comments #70

GitHub Actions / Test Results failed Dec 16, 2024 in 0s

2 fail, 1 244 skipped, 357 pass in 11m 49s

1 603 tests  +1     357 ✅ ±0   11m 49s ⏱️ -4s
    1 suites ±0   1 244 💤 ±0 
    1 files   ±0       2 ❌ +1 

Results for commit 9272647. ± Comparison against earlier commit c22d8ea.

Annotations

Check warning on line 0 in test.test_ad7091r

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad7091rx_raw_attr[raw-0-4000-1000-1-3-voltage0-adi.ad7091rx] (test.test_ad7091r) failed

results.xml [took 3s]
Raw output
AttributeError: voltage0 not defined in adi.ad7091rx
test_attribute_single_value = <function attribute_single_value at 0x7fc2ac2438b0>
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"),
        ],
    )
    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_ad7091r.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 = 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: voltage0 not defined in adi.ad7091rx

test/common.py:154: AttributeError

Check warning on line 0 in test.test_ad7091r

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_ad7091rx_raw_attr[raw-0-4000-1000-1-3-voltage1-adi.ad7091rx] (test.test_ad7091r) failed

results.xml [took 0s]
Raw output
AttributeError: voltage1 not defined in adi.ad7091rx
test_attribute_single_value = <function attribute_single_value at 0x7fc2ac2438b0>
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"),
        ],
    )
    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_ad7091r.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 = 3000, 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