From c238a543570be1d8ad0748561b76bf823fbb9d6a Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 21 Oct 2020 11:26:08 +0100 Subject: Make get_user_by_access_token return a proper type --- tests/handlers/test_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/handlers/test_message.py') diff --git a/tests/handlers/test_message.py b/tests/handlers/test_message.py index 9f6f21a6e2..2e0fea04af 100644 --- a/tests/handlers/test_message.py +++ b/tests/handlers/test_message.py @@ -46,7 +46,7 @@ class EventCreationTestCase(unittest.HomeserverTestCase): self.info = self.get_success( self.hs.get_datastore().get_user_by_access_token(self.access_token,) ) - self.token_id = self.info["token_id"] + self.token_id = self.info.token_id self.requester = create_requester(self.user_id, access_token_id=self.token_id) -- cgit 1.5.1