forked-synapse/tests/handlers
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
..
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
oidc_test_key.p8 JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
oidc_test_key.pub.pem JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
test_admin.py Revert pruning of old devices (#15360) 2023-03-31 13:51:51 +01:00
test_appservice.py Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
test_auth.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_cas.py Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
test_deactivate_account.py Port the push rule classes to Rust. (#13768) 2022-09-20 12:10:31 +01:00
test_device.py Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
test_directory.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_e2e_keys.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_e2e_room_keys.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_federation_event.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_federation.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_message.py Batch up storing state groups when creating new room (#14918) 2023-02-24 13:15:29 -08:00
test_oauth_delegation.py Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
test_oidc.py Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
test_password_providers.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_presence.py Combine logic about not overriding BUSY presence. (#16170) 2023-08-28 11:03:23 -04:00
test_profile.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_receipts.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_register.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_room_member.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_room_summary.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_room.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_saml.py Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
test_send_email.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_sso.py Rename blacklist/whitelist internally. (#15620) 2023-05-19 12:25:25 +00:00
test_stats.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_sync.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_typing.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_user_directory.py Replace make_awaitable with AsyncMock (#16179) 2023-08-24 19:38:46 -04:00
test_worker_lock.py Add ability to wait for locks and add locks to purge history / room deletion (#15791) 2023-07-31 10:58:03 +01:00