mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-10 09:59:59 -04:00
Use direct references for configuration variables (part 7). (#10959)
This commit is contained in:
parent
a071144a5c
commit
a0f48ee89d
23 changed files with 83 additions and 68 deletions
|
@ -147,7 +147,7 @@ class RegisterRestServletTestCase(unittest.HomeserverTestCase):
|
|||
|
||||
def test_POST_guest_registration(self):
|
||||
self.hs.config.key.macaroon_secret_key = "test"
|
||||
self.hs.config.allow_guest_access = True
|
||||
self.hs.config.registration.allow_guest_access = True
|
||||
|
||||
channel = self.make_request(b"POST", self.url + b"?kind=guest", b"{}")
|
||||
|
||||
|
@ -156,7 +156,7 @@ class RegisterRestServletTestCase(unittest.HomeserverTestCase):
|
|||
self.assertDictContainsSubset(det_data, channel.json_body)
|
||||
|
||||
def test_POST_disabled_guest_registration(self):
|
||||
self.hs.config.allow_guest_access = False
|
||||
self.hs.config.registration.allow_guest_access = False
|
||||
|
||||
channel = self.make_request(b"POST", self.url + b"?kind=guest", b"{}")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue