Update tests/test_utils_pv.py
Run CI Tests / test (push) Successful in 59s

This commit is contained in:
2025-08-07 14:46:48 +02:00
parent ff8a90ec00
commit cb702f3d19
+1 -2
View File
@@ -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')