mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 15:13:31 +00:00
Convert user_get_threepids response to attrs. (#16468)
This improves type annotations by not having a dictionary of Any values.
This commit is contained in:
1 parent
a4904dcb04
commit
cc865fffc0
9 files changed
+31
-18
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user