diff options
author | reivilibre <oliverw@matrix.org> | 2022-09-07 10:08:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 11:08:20 +0100 |
commit | c2fe48a6ffb99f553f3eaecb8f15bcbedb58add0 (patch) | |
tree | e9c6f09d739b503c9a15161e3502944b0c022c84 /tests/test_event_auth.py | |
parent | Add Admin API to Fetch Messages Within a Particular Window (#13672) (diff) | |
download | synapse-c2fe48a6ffb99f553f3eaecb8f15bcbedb58add0.tar.xz |
Rename the `EventFormatVersions` enum values so that they line up with room version numbers. (#13706)
Diffstat (limited to 'tests/test_event_auth.py')
-rw-r--r-- | tests/test_event_auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_event_auth.py b/tests/test_event_auth.py index e42d7b9ba0..f4d9fba0a1 100644 --- a/tests/test_event_auth.py +++ b/tests/test_event_auth.py @@ -821,7 +821,7 @@ def _alias_event(room_version: RoomVersion, sender: str, **kwargs) -> EventBase: def _build_auth_dict_for_room_version( room_version: RoomVersion, auth_events: Iterable[EventBase] ) -> List: - if room_version.event_format == EventFormatVersions.V1: + if room_version.event_format == EventFormatVersions.ROOM_V1_V2: return [(e.event_id, "not_used") for e in auth_events] else: return [e.event_id for e in auth_events] @@ -871,7 +871,7 @@ event_count = 0 def _maybe_get_event_id_dict_for_room_version(room_version: RoomVersion) -> dict: """If this room version needs it, generate an event id""" - if room_version.event_format != EventFormatVersions.V1: + if room_version.event_format != EventFormatVersions.ROOM_V1_V2: return {} global event_count |