forked-synapse/synapse
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
..
_scripts Add missing type hints to config classes. (#12402) 2022-04-11 12:07:23 -04:00
api Implement MSC2815: allow room moderators to view redacted event content (#12427) 2022-04-20 12:57:39 +01:00
app Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
appservice MSC3202: Fix device_unused_fallback_keys -> device_unused_fallback_key_types (#12520) 2022-04-22 16:03:46 +01:00
config Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
crypto Bump black and click versions (#12320) 2022-04-05 11:04:28 +01:00
events Consistently use collections.abc.Mapping to check frozendict. (#12564) 2022-04-27 09:00:07 -04:00
federation Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
groups
handlers Add a module API to allow modules to edit push rule actions (#12406) 2022-04-27 13:55:33 +00:00
http Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
logging Prefer make_awaitable over defer.succeed in tests (#12505) 2022-04-27 14:58:26 +01:00
metrics Update type annotations for compatiblity with prometheus_client 0.14 (#12389) 2022-04-06 12:59:04 +00:00
module_api Add a module API to allow modules to edit push rule actions (#12406) 2022-04-27 13:55:33 +00:00
push Refactor and convert Linearizer to async (#12357) 2022-04-05 15:43:52 +01:00
replication Add opentracing spans to calls to external cache (#12380) 2022-04-07 13:18:29 +01:00
res Fix Jinja templating error when generating thumbnail URLs. (#12510) 2022-04-20 12:03:03 -04:00
rest Add a module API to allow modules to edit push rule actions (#12406) 2022-04-27 13:55:33 +00:00
server_notices Update the server notices user profile in room if changed. (#12115) 2022-04-08 07:51:27 -04:00
spam_checker_api
state Refactor and convert Linearizer to async (#12357) 2022-04-05 15:43:52 +01:00
static
storage Add a module API to allow modules to edit push rule actions (#12406) 2022-04-27 13:55:33 +00:00
streams Generate historic pagination token for /messages when no ?from token provided (#12370) 2022-04-06 11:40:28 +01:00
util Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
__init__.py Dump setuptools; correct pyproject version number (#12478) 2022-04-20 17:33:20 +01:00
event_auth.py
notifier.py
py.typed
server.py Add a module API to allow modules to edit push rule actions (#12406) 2022-04-27 13:55:33 +00:00
types.py Make StreamToken and RoomStreamToken methods propagate cancellations (#12366) 2022-04-05 16:56:52 +01:00
visibility.py Optimise backfill calculation (#12522) 2022-04-26 10:27:11 +01:00