synapse/tests/http
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
..
federation Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
server Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
__init__.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
ca.crt Tests for SSL certs for federation connections 2019-06-10 16:14:20 +01:00
ca.key Tests for SSL certs for federation connections 2019-06-10 16:14:20 +01:00
server.key Tests for SSL certs for federation connections 2019-06-10 16:14:20 +01:00
test_additional_resource.py Update license headers 2023-11-21 15:29:58 -05:00
test_client.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_endpoint.py Update license headers 2023-11-21 15:29:58 -05:00
test_matrixfederationclient.py Move reading of multipart response into try body (#19062) 2025-10-30 15:22:52 +00:00
test_proxy.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
test_proxyagent.py Write union types as X | Y where possible (#19111) 2025-11-06 14:02:33 -06:00
test_servlet.py Port Clock functions to use Duration class (#19229) 2025-12-01 13:55:06 +00:00
test_simple_client.py Introduce Clock.call_when_running(...) to include logcontext by default (#18944) 2025-09-22 10:27:59 -05:00
test_site.py Introduce Clock.call_when_running(...) to include logcontext by default (#18944) 2025-09-22 10:27:59 -05:00