mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 16:55:32 -04:00
Add type hints to tests/rest/client
(#12108)
* Add type hints to `tests/rest/client` * newsfile * fix imports * add `test_account.py` * Remove one type hint in `test_report_event.py` * change `on_create_room` to `async` * update new functions in `test_third_party_rules.py` * Add `test_filter.py` * add `test_rooms.py` * change to `assertEquals` to `assertEqual` * lint
This commit is contained in:
parent
b4461e7d8a
commit
2ffaf30803
9 changed files with 421 additions and 350 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
import itertools
|
||||
import urllib.parse
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
from unittest.mock import patch
|
||||
|
||||
from twisted.test.proto_helpers import MemoryReactor
|
||||
|
@ -45,7 +45,7 @@ class BaseRelationsTestCase(unittest.HomeserverTestCase):
|
|||
]
|
||||
hijack_auth = False
|
||||
|
||||
def default_config(self) -> dict:
|
||||
def default_config(self) -> Dict[str, Any]:
|
||||
# We need to enable msc1849 support for aggregations
|
||||
config = super().default_config()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue