Update tests/test_utils_marker.py
Run CI Tests / test (push) Successful in 1m13s

This commit is contained in:
2025-08-10 19:25:40 +02:00
parent e229876ee7
commit 530cb8ba44
-9
View File
@@ -112,15 +112,6 @@ def test_markers_repr_contains_all():
assert "Dev2_TMR2 at 20 V" in repr_str
assert isinstance(repr_str, str)
def test_markers_conflicting_names():
d = DummyDevice(name="DevX_TMC", current=5.0)
m1 = marker_mod.Marker(d, value=50, name="conflict_TMC")
m2 = marker_mod.Marker(d, value=60, name="conflict_TMC")
all_markers = marker_mod.markers._get()
assert "conflict_TMC" in all_markers
assert all_markers["conflict_TMC"] is m2 # The last one wins
def test_marker_registry_dict_is_printable_dict():
d = DummyDevice(name="DevP_TPR", current=7.0)
marker_mod.Marker(d, value=70)