summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-05-08 19:25:48 +0100
committerGitHub <noreply@github.com>2020-05-08 19:25:48 +0100
commit67feea8044562764b04c4968ebf159b44eb59218 (patch)
treed35c110e02239d88d98165a46fc11e8ec240852b /tests
parentImplement OpenID Connect-based login (#7256) (diff)
downloadsynapse-67feea8044562764b04c4968ebf159b44eb59218.tar.xz
Extend spam checker to allow for multiple modules (#7435)
Diffstat (limited to 'tests')
-rw-r--r--tests/handlers/test_user_directory.py4
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))