anonymousland-synapse/tests/server_notices
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
..
__init__.py Actually run the tests 2018-08-23 10:35:54 +01:00
test_consent.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_resource_limits_server_notices.py Prefer make_awaitable over defer.succeed in tests (#12505) 2022-04-27 14:58:26 +01:00