MatrixSynapse/tests
David Robertson 6ba732fefe
Type `tests.utils` (#13028)
* Cast to postgres types when handling postgres db

* Remove unused method

* Easy annotations

* Annotate create_room

* Use `ParamSpec` to annotate looping_call

* Annotate `default_config`

* Track `now` as a float

`time_ms` returns an int like the proper Synapse `Clock`

* Introduce a `Timer` dataclass

* Introduce a Looper type

* Suppress checking of a mock

* tests.utils is typed

* Changelog

* Whoops, import ParamSpec from typing_extensions

* ditch the psycopg2 casts
2022-07-05 15:13:47 +01:00
..
api
app
appservice
config
crypto
events
federation
handlers
http
logging
module_api
push
replication
rest
scripts
server_notices
state
storage
test_utils
util
__init__.py
server.py
test_distributor.py
test_event_auth.py
test_federation.py
test_mau.py
test_metrics.py
test_phone_home.py
test_server.py
test_state.py
test_terms_auth.py
test_test_utils.py
test_types.py Fix `destination_is` errors seen in sentry. (#13041) 2022-06-14 18:28:26 +01:00
test_visibility.py
unittest.py
utils.py Type `tests.utils` (#13028) 2022-07-05 15:13:47 +01:00