diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2022-04-01 17:04:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 16:04:16 +0000 |
commit | f0b03186d96305fd44d74a89bf4230beec0c5c31 (patch) | |
tree | 3452c18b9205bc18584ea8b4fb43c4e8a2912fef /tests/handlers/test_e2e_keys.py | |
parent | Remove redundant `get_success` calls in test code (#12346) (diff) | |
download | synapse-f0b03186d96305fd44d74a89bf4230beec0c5c31.tar.xz |
Add type hints for `tests/unittest.py`. (#12347)
In particular, add type hints for get_success and friends, which are then helpful in a bunch of places.
Diffstat (limited to 'tests/handlers/test_e2e_keys.py')
-rw-r--r-- | tests/handlers/test_e2e_keys.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/handlers/test_e2e_keys.py b/tests/handlers/test_e2e_keys.py index ac21a28c43..8c74ed1fcf 100644 --- a/tests/handlers/test_e2e_keys.py +++ b/tests/handlers/test_e2e_keys.py @@ -463,8 +463,10 @@ class E2eKeysHandlerTestCase(unittest.HomeserverTestCase): res = e.value.code self.assertEqual(res, 400) - res = self.get_success(self.handler.query_local_devices({local_user: None})) - self.assertDictEqual(res, {local_user: {}}) + query_res = self.get_success( + self.handler.query_local_devices({local_user: None}) + ) + self.assertDictEqual(query_res, {local_user: {}}) def test_upload_signatures(self) -> None: """should check signatures that are uploaded""" |