synapse/tests/handlers
Erik Johnston 1bddd25a85
Port Clock functions to use Duration class (#19229)
This changes the arguments in clock functions to be `Duration` and
converts call sites and constants into `Duration`. There are still some
more functions around that should be converted (e.g.
`timeout_deferred`), but we leave that to another PR.

We also changes `.as_secs()` to return a float, as the rounding broke
things subtly. The only reason to keep it (its the same as
`timedelta.total_seconds()`) is for symmetry with `as_millis()`.

Follows on from https://github.com/element-hq/synapse/pull/19223
2025-12-01 13:55:06 +00:00
..
__init__.py
oidc_test_key.p8
oidc_test_key.pub.pem
test_admin.py Introduce Clock.call_when_running(...) to include logcontext by default (#18944) 2025-09-22 10:27:59 -05:00
test_appservice.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_auth.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_cas.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_deactivate_account.py Introduce Clock.call_when_running(...) to include logcontext by default (#18944) 2025-09-22 10:27:59 -05:00
test_device.py Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
test_directory.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_e2e_keys.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_e2e_room_keys.py Remove MockClock() (#18992) 2025-09-30 11:27:29 -05:00
test_federation_event.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_federation.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_message.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_oauth_delegation.py Allow subpaths in MAS endpoints (#19186) 2025-11-18 18:45:33 +00:00
test_oidc.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_password_providers.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_presence.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_profile.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_receipts.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_register.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_room_list.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_room_member.py Implement MSC4380: Invite blocking (#19203) 2025-11-26 16:12:14 +00:00
test_room_policy.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_room_summary.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_room.py Add missing type hints to tests.handlers. (#14680) 2022-12-16 11:53:01 +00:00
test_saml.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_send_email.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_sliding_sync.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_sso.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_stats.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_sync.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_typing.py Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
test_user_directory.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_worker_lock.py Introduce Clock.call_when_running(...) to include logcontext by default (#18944) 2025-09-22 10:27:59 -05:00