diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-10-11 20:08:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 20:08:11 -0400 |
commit | cc865fffc0e556005a6ab596717a77230ba82ee7 (patch) | |
tree | 9ca606b24dd07b73edbb89bc1803e98034c812f2 /tests | |
parent | Convert simple_select_many_batch, simple_select_many_txn to tuples. (#16444) (diff) | |
download | synapse-cc865fffc0e556005a6ab596717a77230ba82ee7.tar.xz |
Convert user_get_threepids response to attrs. (#16468)
This improves type annotations by not having a dictionary of Any values.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/module_api/test_api.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/module_api/test_api.py b/tests/module_api/test_api.py index 172fc3a736..1dabf52156 100644 --- a/tests/module_api/test_api.py +++ b/tests/module_api/test_api.py @@ -94,12 +94,12 @@ class ModuleApiTestCase(BaseModuleApiTestCase): self.assertEqual(len(emails), 1) email = emails[0] - self.assertEqual(email["medium"], "email") - self.assertEqual(email["address"], "bob@bobinator.bob") + self.assertEqual(email.medium, "email") + self.assertEqual(email.address, "bob@bobinator.bob") # Should these be 0? - self.assertEqual(email["validated_at"], 0) - self.assertEqual(email["added_at"], 0) + self.assertEqual(email.validated_at, 0) + self.assertEqual(email.added_at, 0) # Check that the displayname was assigned displayname = self.get_success( |