summary refs log tree commit diff
path: root/tests/test_state.py
diff options
context:
space:
mode:
authorShay <hillerys@element.io>2023-06-13 13:22:06 -0700
committerGitHub <noreply@github.com>2023-06-13 13:22:06 -0700
commit553f2f53e7930d721d2070ffa45af6397f5ecb60 (patch)
tree3a6a53554176bf65125a2f98342c5cb082296d0f /tests/test_state.py
parentFix MSC3983 support: only one OTK per device was returned through federation ... (diff)
downloadsynapse-553f2f53e7930d721d2070ffa45af6397f5ecb60.tar.xz
Replace `EventContext` fields `prev_group` and `delta_ids` with field `state_group_deltas` (#15233)
Diffstat (limited to 'tests/test_state.py')
-rw-r--r--tests/test_state.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/test_state.py b/tests/test_state.py

index 7a49b87953..eded38c766 100644 --- a/tests/test_state.py +++ b/tests/test_state.py
@@ -555,10 +555,15 @@ class StateTestCase(unittest.TestCase): (e.event_id for e in old_state + [event]), current_state_ids.values() ) - self.assertIsNotNone(context.state_group_before_event) + assert context.state_group_before_event is not None + assert context.state_group is not None + self.assertEqual( + context.state_group_deltas.get( + (context.state_group_before_event, context.state_group) + ), + {(event.type, event.state_key): event.event_id}, + ) self.assertNotEqual(context.state_group_before_event, context.state_group) - self.assertEqual(context.state_group_before_event, context.prev_group) - self.assertEqual({("state", ""): event.event_id}, context.delta_ids) @defer.inlineCallbacks def test_trivial_annotate_message(