mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-31 19:44:29 +00:00
Comment on why we're using a Mock
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user