synapse/tests/rest/admin
Patrick Cloke 1182ae5063
Add helper to parse an enum from query args & use it. (#14956)
The `parse_enum` helper pulls an enum value from the query string
(by delegating down to the parse_string helper with values generated
from the enum).

This is used to pull out "f" and "b" in most places and then we thread
the resulting Direction enum throughout more code.
2023-02-01 21:35:24 +00:00
..
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_admin.py Use literals in place of HTTPStatus constants in tests (#13479) 2022-08-09 14:56:43 +01:00
test_background_updates.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_device.py Add a type hint for get_device_handler() and fix incorrect types. (#14055) 2022-11-22 14:08:04 -05:00
test_event_reports.py Add helper to parse an enum from query args & use it. (#14956) 2023-02-01 21:35:24 +00:00
test_federation.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_media.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_registration_tokens.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_room.py Faster joins: omit partial rooms from eager syncs until the resync completes (#14870) 2023-01-23 15:44:39 +00:00
test_server_notice.py Fix that sending server notices fail if avatar is None (#13566) 2022-08-23 09:48:35 +01:00
test_statistics.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00
test_user.py Respond with proper error responses on unknown paths. (#14621) 2022-12-08 11:37:05 -05:00
test_username_available.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00