0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 07:03:46 +01:00
synapse/tests/rest/admin
Sean Quah d0c713cc85
Return read-only collections from @cached methods (#13755)
It's important that collections returned from `@cached` methods are not
modified, otherwise future retrievals from the cache will return the
modified collection.

This applies to the return values from `@cached` methods and the values
inside the dictionaries returned by `@cachedList` methods. It's not
necessary for the dictionaries returned by `@cachedList` methods
themselves to be read-only.

Signed-off-by: Sean Quah <seanq@matrix.org>
Co-authored-by: David Robertson <davidr@element.io>
2023-02-10 23:29:00 +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 Respond correctly to unknown methods on known endpoints (#14605) 2023-02-09 13:04:24 -05: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 Return read-only collections from @cached methods (#13755) 2023-02-10 23:29:00 +00: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 Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00
test_username_available.py Use literals in place of HTTPStatus constants in tests (#13488) 2022-08-10 11:01:12 -07:00