diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-02-24 19:56:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 13:56:38 -0500 |
commit | 54e74cc15f30585f5874780437614c0df6f639d9 (patch) | |
tree | 8b8465bbddaaf444544a315932e2e952e9638d21 /tests/rest/client/test_keys.py | |
parent | Add support for MSC3202: sending one-time key counts and fallback key usage s... (diff) | |
download | synapse-54e74cc15f30585f5874780437614c0df6f639d9.tar.xz |
Add type hints to `tests/rest/client` (#12072)
Diffstat (limited to 'tests/rest/client/test_keys.py')
-rw-r--r-- | tests/rest/client/test_keys.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rest/client/test_keys.py b/tests/rest/client/test_keys.py index d7fa635eae..bbc8e74243 100644 --- a/tests/rest/client/test_keys.py +++ b/tests/rest/client/test_keys.py @@ -28,7 +28,7 @@ class KeyQueryTestCase(unittest.HomeserverTestCase): login.register_servlets, ] - def test_rejects_device_id_ice_key_outside_of_list(self): + def test_rejects_device_id_ice_key_outside_of_list(self) -> None: self.register_user("alice", "wonderland") alice_token = self.login("alice", "wonderland") bob = self.register_user("bob", "uncle") @@ -49,7 +49,7 @@ class KeyQueryTestCase(unittest.HomeserverTestCase): channel.result, ) - def test_rejects_device_key_given_as_map_to_bool(self): + def test_rejects_device_key_given_as_map_to_bool(self) -> None: self.register_user("alice", "wonderland") alice_token = self.login("alice", "wonderland") bob = self.register_user("bob", "uncle") @@ -73,7 +73,7 @@ class KeyQueryTestCase(unittest.HomeserverTestCase): channel.result, ) - def test_requires_device_key(self): + def test_requires_device_key(self) -> None: """`device_keys` is required. We should complain if it's missing.""" self.register_user("alice", "wonderland") alice_token = self.login("alice", "wonderland") |