This commit is contained in:
@@ -187,13 +187,13 @@ class TestOperationMessage:
|
||||
def test_status_object_is_wired(self):
|
||||
om = OperationMessage(name="Control Room")
|
||||
om.status.update("REMOTE")
|
||||
assert om.status.status == "REMOTE"
|
||||
assert om.status.pv_status == "REMOTE"
|
||||
|
||||
def test_repr_contains_header_and_entries(self):
|
||||
om = OperationMessage(name="Control Room")
|
||||
om.status.pv_status.put("ATTENDED", wait=True)
|
||||
om.entries[0].pv_date.put("2025-08-08 12:00:00", wait=True)
|
||||
om.entries[0].pv_msg.put("Slot A ok", wait=True)
|
||||
om.status.pv_status.put("ATTENDED")
|
||||
om.entries[0].pv_date.put("2025-08-08 12:00:00")
|
||||
om.entries[0].pv_msg.put("Slot A ok")
|
||||
r = repr(om)
|
||||
assert "Control Room (CR)" in r
|
||||
assert "ATTENDED" in r
|
||||
|
||||
Reference in New Issue
Block a user