diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-09-28 07:01:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 07:01:46 -0400 |
commit | cdb89dcefe9f4d7035f898cd77cd514fa69c2673 (patch) | |
tree | 941ce3870cd078b240a2f01fc66c3ab99ca0dd50 /tests/state/test_v2.py | |
parent | Use modern config for maturin. (#16394) (diff) | |
download | synapse-cdb89dcefe9f4d7035f898cd77cd514fa69c2673.tar.xz |
Improve state types. (#16395)
Diffstat (limited to '')
-rw-r--r-- | tests/state/test_v2.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/state/test_v2.py b/tests/state/test_v2.py index 2e3f2318d9..6a2f7584f6 100644 --- a/tests/state/test_v2.py +++ b/tests/state/test_v2.py @@ -719,7 +719,10 @@ class AuthChainDifferenceTestCase(unittest.TestCase): persisted_events = {a.event_id: a, b.event_id: b} unpersited_events = {c.event_id: c} - state_sets = [{"a": a.event_id, "b": b.event_id}, {"c": c.event_id}] + state_sets = [ + {("a", ""): a.event_id, ("b", ""): b.event_id}, + {("c", ""): c.event_id}, + ] store = TestStateResolutionStore(persisted_events) @@ -774,8 +777,8 @@ class AuthChainDifferenceTestCase(unittest.TestCase): unpersited_events = {c.event_id: c, d.event_id: d} state_sets = [ - {"a": a.event_id, "b": b.event_id}, - {"c": c.event_id, "d": d.event_id}, + {("a", ""): a.event_id, ("b", ""): b.event_id}, + {("c", ""): c.event_id, ("d", ""): d.event_id}, ] store = TestStateResolutionStore(persisted_events) @@ -841,8 +844,8 @@ class AuthChainDifferenceTestCase(unittest.TestCase): unpersited_events = {c.event_id: c, d.event_id: d, e.event_id: e} state_sets = [ - {"a": a.event_id, "b": b.event_id, "e": e.event_id}, - {"c": c.event_id, "d": d.event_id}, + {("a", ""): a.event_id, ("b", ""): b.event_id, ("e", ""): e.event_id}, + {("c", ""): c.event_id, ("d", ""): d.event_id}, ] store = TestStateResolutionStore(persisted_events) |