summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-02-02 09:59:55 +0000
committerGitHub <noreply@github.com>2022-02-02 09:59:55 +0000
commit513913cc6ba77833082178b7d2b2f0565daf3c99 (patch)
tree91793eeab833e6ebb96bd55fba9e271db24a4266 /tests/handlers
parentConvert `ApplicationServiceTestCase` to use `simple_async_mock` (#11880) (diff)
downloadsynapse-513913cc6ba77833082178b7d2b2f0565daf3c99.tar.xz
Expose the registered device ID from the `register_appservice_user` test helper. (#11615)
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_user_directory.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/handlers/test_user_directory.py b/tests/handlers/test_user_directory.py
index 70c621b825..482c90ef68 100644
--- a/tests/handlers/test_user_directory.py
+++ b/tests/handlers/test_user_directory.py
@@ -169,7 +169,9 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase):
         # Register an AS user.
         user = self.register_user("user", "pass")
         token = self.login(user, "pass")
-        as_user = self.register_appservice_user("as_user_potato", self.appservice.token)
+        as_user, _ = self.register_appservice_user(
+            "as_user_potato", self.appservice.token
+        )
 
         # Join the AS user to rooms owned by the normal user.
         public, private = self._create_rooms_and_inject_memberships(
@@ -388,7 +390,7 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase):
 
     def test_handle_local_profile_change_with_appservice_user(self) -> None:
         # create user
-        as_user_id = self.register_appservice_user(
+        as_user_id, _ = self.register_appservice_user(
             "as_user_alice", self.appservice.token
         )