0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-21 04:14:03 +01:00
synapse/tests/storage
Sean Quah 78b99de7c2
Prefer make_awaitable over defer.succeed in tests (#12505)
When configuring the return values of mocks, prefer awaitables from
`make_awaitable` over `defer.succeed`. `Deferred`s are only awaitable
once, so it is inappropriate for a mock to return the same `Deferred`
multiple times.

Also update `run_in_background` to support functions that return
arbitrary awaitables.

Signed-off-by: Sean Quah <seanq@element.io>
2022-04-27 14:58:26 +01:00
..
databases Handle cancellation in EventsWorkerStore._get_events_from_cache_or_db (#12529) 2022-04-25 19:39:17 +01:00
util Await un-partial-stating after a partial-state join (#12399) 2022-04-21 07:42:03 +01:00
__init__.py
test__base.py Optimise _update_client_ips_batch_txn to batch together database operations. (#12252) 2022-04-08 15:29:13 +01:00
test_account_data.py
test_appservice.py Add type hints for tests/unittest.py. (#12347) 2022-04-01 16:04:16 +00:00
test_background_update.py
test_base.py
test_cleanup_extrems.py
test_client_ips.py
test_database.py
test_devices.py Mark remote device list updates as already handled (#12557) 2022-04-26 17:07:21 +01:00
test_directory.py
test_e2e_room_keys.py
test_end_to_end_keys.py
test_event_chain.py
test_event_federation.py
test_event_metrics.py
test_event_push_actions.py
test_events.py
test_id_generators.py Remove redundant get_success calls in test code (#12346) 2022-04-01 16:10:31 +01:00
test_keys.py
test_main.py
test_monthly_active_users.py Prefer make_awaitable over defer.succeed in tests (#12505) 2022-04-27 14:58:26 +01:00
test_profile.py
test_purge.py
test_redaction.py Remove redundant get_success calls in test code (#12346) 2022-04-01 16:10:31 +01:00
test_registration.py
test_rollback_worker.py
test_room.py
test_room_search.py
test_roommember.py Add type hints to some tests files (#12371) 2022-04-05 13:54:41 +01:00
test_state.py
test_stream.py Generate historic pagination token for /messages when no ?from token provided (#12370) 2022-04-06 11:40:28 +01:00
test_transactions.py
test_txn_limit.py
test_unsafe_locale.py
test_user_directory.py