diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2020-05-08 19:25:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 19:25:48 +0100 |
commit | 67feea8044562764b04c4968ebf159b44eb59218 (patch) | |
tree | d35c110e02239d88d98165a46fc11e8ec240852b /tests/handlers | |
parent | Implement OpenID Connect-based login (#7256) (diff) | |
download | synapse-67feea8044562764b04c4968ebf159b44eb59218.tar.xz |
Extend spam checker to allow for multiple modules (#7435)
Diffstat (limited to 'tests/handlers')
-rw-r--r-- | tests/handlers/test_user_directory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_user_directory.py b/tests/handlers/test_user_directory.py index 7b92bdbc47..572df8d80b 100644 --- a/tests/handlers/test_user_directory.py +++ b/tests/handlers/test_user_directory.py @@ -185,7 +185,7 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase): # Allow all users. return False - spam_checker.spam_checker = AllowAll() + spam_checker.spam_checkers = [AllowAll()] # The results do not change: # We get one search result when searching for user2 by user1. @@ -198,7 +198,7 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase): # All users are spammy. return True - spam_checker.spam_checker = BlockAll() + spam_checker.spam_checkers = [BlockAll()] # User1 now gets no search results for any of the other users. s = self.get_success(self.handler.search_users(u1, "user2", 10)) |