diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-03-19 11:01:02 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-03-19 11:44:43 +0000 |
commit | 45bb54a6c666b419d7a22af3dde4fc38a6431cbd (patch) | |
tree | 90ab0340e98454a765fc12775fed64c7752e5197 /tests/rest | |
parent | Fix email test (diff) | |
download | synapse-45bb54a6c666b419d7a22af3dde4fc38a6431cbd.tar.xz |
Fix registration test
* Set allow_guest_access = True, since we rely on it * config doesn't have a `hostname` attribute; it is `server_name`
Diffstat (limited to 'tests/rest')
-rw-r--r-- | tests/rest/client/v2_alpha/test_register.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rest/client/v2_alpha/test_register.py b/tests/rest/client/v2_alpha/test_register.py index 8fb525d3bf..a45e6e5e1f 100644 --- a/tests/rest/client/v2_alpha/test_register.py +++ b/tests/rest/client/v2_alpha/test_register.py @@ -20,6 +20,7 @@ class RegisterRestServletTestCase(unittest.HomeserverTestCase): self.hs.config.registrations_require_3pid = [] self.hs.config.auto_join_rooms = [] self.hs.config.enable_registration_captcha = False + self.hs.config.allow_guest_access = True return self.hs @@ -28,7 +29,7 @@ class RegisterRestServletTestCase(unittest.HomeserverTestCase): as_token = "i_am_an_app_service" appservice = ApplicationService( - as_token, self.hs.config.hostname, + as_token, self.hs.config.server_name, id="1234", namespaces={ "users": [{"regex": r"@as_user.*", "exclusive": True}], |