Comment on why we're using a Mock

This commit is contained in:
Erik Johnston
2026-05-27 13:28:28 +01:00
parent 90ee916529
commit 141df2ed8b
+1
View File
@@ -154,6 +154,7 @@ class MSC4242EventPersistenceStateDagsStoreTestCase(HomeserverTestCase):
prev_state_events: list[str],
rejected: bool = False,
) -> tuple[MSC4242Event, EventContext]:
# We use a mock here to allow us to set the `event_id`.
ev = Mock(spec=EventBase)
ev.event_id = id
ev.prev_state_events = prev_state_events