diff options
author | David Robertson <davidr@element.io> | 2023-02-09 00:23:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-09 00:23:35 +0000 |
commit | 7081bb56e2b4201ee730310a88180b6f76af1337 (patch) | |
tree | c6d592a19bc732e55129f5dd1f652f6ba94b5a50 /tests/events | |
parent | Add more missing type hints to tests. (#15028) (diff) | |
download | synapse-7081bb56e2b4201ee730310a88180b6f76af1337.tar.xz |
Proper types for `tests.module_api` (#15031)
* -> None for test methods * A first batch of type fixes * Introduce common parent test case * Fixup that big test method * tests.module_api passes mypy * Changelog
Diffstat (limited to 'tests/events')
-rw-r--r-- | tests/events/test_presence_router.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/events/test_presence_router.py b/tests/events/test_presence_router.py index a9893def74..741bb6464a 100644 --- a/tests/events/test_presence_router.py +++ b/tests/events/test_presence_router.py @@ -31,7 +31,11 @@ from synapse.util import Clock from tests.handlers.test_sync import generate_sync_config from tests.test_utils import simple_async_mock -from tests.unittest import FederatingHomeserverTestCase, override_config +from tests.unittest import ( + FederatingHomeserverTestCase, + HomeserverTestCase, + override_config, +) @attr.s @@ -470,7 +474,7 @@ class PresenceRouterTestCase(FederatingHomeserverTestCase): def send_presence_update( - testcase: FederatingHomeserverTestCase, + testcase: HomeserverTestCase, user_id: str, access_token: str, presence_state: str, @@ -491,7 +495,7 @@ def send_presence_update( def sync_presence( - testcase: FederatingHomeserverTestCase, + testcase: HomeserverTestCase, user_id: str, since_token: Optional[StreamToken] = None, ) -> Tuple[List[UserPresenceState], StreamToken]: |