diff --git a/apstools/utils/device_info.py b/apstools/utils/device_info.py index f48a247c8..3a524e747 100644 --- a/apstools/utils/device_info.py +++ b/apstools/utils/device_info.py @@ -24,7 +24,7 @@ pd.set_option("display.max_rows", None) -NOT_CONNECTED_VALUE = "-nc-" # use this in table for signals that did not connect +NOT_CONNECTED_VALUE = "-n/c-" # use this in table for signals that did not connect def _all_signals(base): diff --git a/apstools/utils/tests/test_listdevice.py b/apstools/utils/tests/test_listdevice.py index 39ca2ce75..8f52fee58 100644 --- a/apstools/utils/tests/test_listdevice.py +++ b/apstools/utils/tests/test_listdevice.py @@ -172,17 +172,17 @@ def test_listdevice_cname(device, scope, cnames): @pytest.mark.parametrize( - "class_, count, item", + "class_, num_lines, nc_item", [ [TwoSignalDevice, 6, 3], [MyDevice, 134, 130], ], ) -def test_unconnectable(class_, count, item): +def test_unconnectable(class_, num_lines, nc_item): device = class_("", name="device") assert not device.connected result = str(listdevice(device)).splitlines() assert not device.connected - assert len(result) == count - assert result[item].split()[1] == NOT_CONNECTED_VALUE + assert len(result) == num_lines + assert result[nc_item].split()[1] == NOT_CONNECTED_VALUE