summary refs log tree commit diff
path: root/tests/handlers/test_device.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-10-21 11:26:08 +0100
committerErik Johnston <erik@matrix.org>2020-10-21 16:53:40 +0100
commitc238a543570be1d8ad0748561b76bf823fbb9d6a (patch)
treebd348e7fb5fbbe176e50861fb688d39902f19c1d /tests/handlers/test_device.py
parentAdd typing info to registration (diff)
downloadsynapse-c238a543570be1d8ad0748561b76bf823fbb9d6a.tar.xz
Make get_user_by_access_token return a proper type
Diffstat (limited to 'tests/handlers/test_device.py')
-rw-r--r--tests/handlers/test_device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/handlers/test_device.py b/tests/handlers/test_device.py

index 4512c51311..875aaec2c6 100644 --- a/tests/handlers/test_device.py +++ b/tests/handlers/test_device.py
@@ -289,7 +289,7 @@ class DehydrationTestCase(unittest.HomeserverTestCase): # make sure that our device ID has changed user_info = self.get_success(self.auth.get_user_by_access_token(access_token)) - self.assertEqual(user_info["device_id"], retrieved_device_id) + self.assertEqual(user_info.device_id, retrieved_device_id) # make sure the device has the display name that was set from the login res = self.get_success(self.handler.get_device(user_id, retrieved_device_id))