diff options
author | David Robertson <davidr@element.io> | 2021-09-10 10:54:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 10:54:38 +0100 |
commit | 318162f5debc595d3381337fe363fa7936cc7843 (patch) | |
tree | 2a6451443ea2e9ecd6fe8ff973ab202abe48b42e /tests | |
parent | Remove fixed and flakey tests from the sytest blacklist (#10788) (diff) | |
download | synapse-318162f5debc595d3381337fe363fa7936cc7843.tar.xz |
Easy refactors of the user directory (#10789)
No functional changes here. This came out as I was working to tackle #5677
Diffstat (limited to 'tests')
-rw-r--r-- | tests/handlers/test_user_directory.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/handlers/test_user_directory.py b/tests/handlers/test_user_directory.py index a91d31ce61..ae88ed89aa 100644 --- a/tests/handlers/test_user_directory.py +++ b/tests/handlers/test_user_directory.py @@ -94,7 +94,7 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase): # deactivate user self.get_success(self.store.set_user_deactivated_status(r_user_id, True)) - self.get_success(self.handler.handle_user_deactivated(r_user_id)) + self.get_success(self.handler.handle_local_user_deactivated(r_user_id)) # profile is not in directory profile = self.get_success(self.store.get_user_in_directory(r_user_id)) @@ -118,7 +118,7 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase): ) self.store.remove_from_user_dir = Mock(return_value=defer.succeed(None)) - self.get_success(self.handler.handle_user_deactivated(s_user_id)) + self.get_success(self.handler.handle_local_user_deactivated(s_user_id)) self.store.remove_from_user_dir.not_called() def test_handle_user_deactivated_regular_user(self): @@ -127,7 +127,7 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase): self.store.register_user(user_id=r_user_id, password_hash=None) ) self.store.remove_from_user_dir = Mock(return_value=defer.succeed(None)) - self.get_success(self.handler.handle_user_deactivated(r_user_id)) + self.get_success(self.handler.handle_local_user_deactivated(r_user_id)) self.store.remove_from_user_dir.called_once_with(r_user_id) def test_private_room(self): |