Skip to content

Commit

Permalink
TST #846
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed May 23, 2023
1 parent 3111b4b commit 5a68526
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apstools/utils/device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
8 changes: 4 additions & 4 deletions apstools/utils/tests/test_listdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5a68526

Please sign in to comment.