diff options
author | Mathieu Velten <mathieuv@matrix.org> | 2023-07-12 11:09:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-12 11:09:13 +0200 |
commit | 8eb7bb975eed0250aa8be5e8fb70c586cbff6b37 (patch) | |
tree | 41daac5925b05cf92758a48434bded31c6578bd8 /tests/rest | |
parent | Make it more obvious which Python version runs on a given Linux distribution ... (diff) | |
download | synapse-8eb7bb975eed0250aa8be5e8fb70c586cbff6b37.tar.xz |
Mark get_user_in_directory private since only used in tests (#15884)
Diffstat (limited to 'tests/rest')
-rw-r--r-- | tests/rest/admin/test_user.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rest/admin/test_user.py b/tests/rest/admin/test_user.py index a17a1bb1d8..6f7b4bf642 100644 --- a/tests/rest/admin/test_user.py +++ b/tests/rest/admin/test_user.py @@ -2472,7 +2472,7 @@ class UserRestTestCase(unittest.HomeserverTestCase): """ # is in user directory - profile = self.get_success(self.store.get_user_in_directory(self.other_user)) + profile = self.get_success(self.store._get_user_in_directory(self.other_user)) assert profile is not None self.assertTrue(profile["display_name"] == "User") @@ -2489,7 +2489,7 @@ class UserRestTestCase(unittest.HomeserverTestCase): self.assertTrue(channel.json_body["deactivated"]) # is not in user directory - profile = self.get_success(self.store.get_user_in_directory(self.other_user)) + profile = self.get_success(self.store._get_user_in_directory(self.other_user)) self.assertIsNone(profile) # Set new displayname user @@ -2506,7 +2506,7 @@ class UserRestTestCase(unittest.HomeserverTestCase): self.assertEqual("Foobar", channel.json_body["displayname"]) # is not in user directory - profile = self.get_success(self.store.get_user_in_directory(self.other_user)) + profile = self.get_success(self.store._get_user_in_directory(self.other_user)) self.assertIsNone(profile) def test_reactivate_user(self) -> None: |