synapse-old/tests
Patrick Cloke 1bf143699c
Combine logic about not overriding BUSY presence. (#16170)
Simplify some of the presence code by reducing duplicated code between
worker & non-worker modes.

The main change is to push some of the logic from `user_syncing` into
`set_state`. This is done by passing whether the user is setting the presence
via a `/sync` with a new `is_sync` flag to `set_state`. If this is `true` some
additional logic is performed:

* Don't override `busy` presence.
* Update the `last_user_sync_ts`.
* Never update the status message.
2023-08-28 11:03:23 -04:00
..
api Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
app Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
appservice Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
config Disable `m.3pid_changes` capability when MSC3861 is enabled. (#16134) 2023-08-22 14:47:59 +00:00
crypto Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
events Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
federation Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
handlers Combine logic about not overriding BUSY presence. (#16170) 2023-08-28 11:03:23 -04:00
http Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
logging Trace functions which return `Awaitable` (#15650) 2023-06-06 17:39:22 -05:00
media Fix unsafe hotserving behaviour for non-multimedia uploads. (#15680) 2023-06-15 14:23:27 +01:00
metrics Remove support for Python 3.7 (#15851) 2023-07-05 18:45:42 -05:00
module_api Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
push Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
replication Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
rest Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
scripts Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
server_notices Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
state Fix typechecks against twisted trunk (#13061) 2022-06-15 11:49:58 +01:00
storage Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
test_utils Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
types Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
util Task scheduler: add replication notify for new task to launch ASAP (#16184) 2023-08-28 14:03:51 +00:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Properly call setup_background_tasks in unit tests. (#16150) 2023-08-22 07:46:32 -04:00
test_distributor.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_event_auth.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_federation.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_mau.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_phone_home.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_rust.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_server.py Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
test_state.py Replace `EventContext` fields `prev_group` and `delta_ids` with field `state_group_deltas` (#15233) 2023-06-13 13:22:06 -07:00
test_terms_auth.py Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
test_test_utils.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_types.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_visibility.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
unittest.py Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
utils.py Modify StoreKeyFetcher to read from server_keys_json. (#15417) 2023-04-20 12:30:32 -04:00