From 141df2ed8bd85f4f208475ec45d1e150a6a78ff4 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 27 May 2026 13:28:28 +0100 Subject: [PATCH] Comment on why we're using a Mock --- tests/storage/test_msc4242_state_dag.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/storage/test_msc4242_state_dag.py b/tests/storage/test_msc4242_state_dag.py index 6c2486b542..42f996ccc0 100644 --- a/tests/storage/test_msc4242_state_dag.py +++ b/tests/storage/test_msc4242_state_dag.py @@ -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