mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 16:04:12 -04:00
Use direct references for configuration variables (part 5). (#10897)
This commit is contained in:
parent
85551b7a85
commit
bb7fdd821b
48 changed files with 128 additions and 113 deletions
|
@ -451,7 +451,7 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase):
|
|||
visible.
|
||||
"""
|
||||
self.handler.search_all_users = True
|
||||
self.hs.config.user_directory_search_all_users = True
|
||||
self.hs.config.userdirectory.user_directory_search_all_users = True
|
||||
|
||||
u1 = self.register_user("user1", "pass")
|
||||
self.register_user("user2", "pass")
|
||||
|
@ -607,7 +607,7 @@ class TestUserDirSearchDisabled(unittest.HomeserverTestCase):
|
|||
return hs
|
||||
|
||||
def test_disabling_room_list(self):
|
||||
self.config.user_directory_search_enabled = True
|
||||
self.config.userdirectory.user_directory_search_enabled = True
|
||||
|
||||
# First we create a room with another user so that user dir is non-empty
|
||||
# for our user
|
||||
|
@ -624,7 +624,7 @@ class TestUserDirSearchDisabled(unittest.HomeserverTestCase):
|
|||
self.assertTrue(len(channel.json_body["results"]) > 0)
|
||||
|
||||
# Disable user directory and check search returns nothing
|
||||
self.config.user_directory_search_enabled = False
|
||||
self.config.userdirectory.user_directory_search_enabled = False
|
||||
channel = self.make_request(
|
||||
"POST", b"user_directory/search", b'{"search_term":"user2"}'
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue