1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-04-07 03:33:29 +00:00
synapse/tests/rest
Sean Quah d0c713cc85
Return read-only collections from @cached methods ()
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
..
admin Return read-only collections from @cached methods () 2023-02-10 23:29:00 +00:00
client Add missing type hints in tests () 2023-01-26 14:45:24 -05:00
key Stop using deprecated keyIds param on /key/v2/server () 2022-11-30 11:59:57 +00:00
media Typecheck tests.rest.media.v1.test_media_storage () 2023-02-07 15:24:44 +00:00
__init__.py Remove redundant "coding: utf-8" lines () 2021-04-14 15:34:27 +01:00
test_health.py Use literals in place of HTTPStatus constants in tests () 2022-08-05 16:59:09 +02:00
test_well_known.py Use literals in place of HTTPStatus constants in tests () 2022-08-05 16:59:09 +02:00