This commit is contained in:
@@ -63,7 +63,6 @@ def strip_ansi(text):
|
||||
def test_put_with_progress_and_repr(value, expected_color):
|
||||
pv = PV("TEST:VAL", connection_timeout=2.0)
|
||||
assert pv.wait_for_connection(timeout=2.0), "PV not connected"
|
||||
pv.units = "//"
|
||||
|
||||
pv.put(0.0, wait=True)
|
||||
assert pv.get() == pytest.approx(0.0)
|
||||
@@ -101,7 +100,7 @@ def test_put_with_progress_and_repr(value, expected_color):
|
||||
assert pv.get() == pytest.approx(value)
|
||||
|
||||
# Représentation
|
||||
expected_repr = f'PV "TEST:VAL" at {value} //'
|
||||
expected_repr = f'PV "TEST:VAL" at {value}'
|
||||
assert repr(pv) == expected_repr
|
||||
assert pv.orig_repr().startswith('<epics.pv.PV')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user