summary refs log tree commit diff
path: root/tests/test_terms_auth.py
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2018-11-06 03:32:34 -0700
committerRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-11-06 10:32:34 +0000
commit0f5e51f726756318f355d988856730a9930e2d2f (patch)
treef01b2b5e438f669497e24dad108b23cb4a81ba7c /tests/test_terms_auth.py
parenthandle empty backups according to latest spec proposal (#4123) (diff)
downloadsynapse-0f5e51f726756318f355d988856730a9930e2d2f.tar.xz
Add config variables for enabling terms auth and the policy name (#4142)
So people can still collect consent the old way if they want to.
Diffstat (limited to 'tests/test_terms_auth.py')
-rw-r--r--tests/test_terms_auth.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_terms_auth.py b/tests/test_terms_auth.py
index 7deab5266f..0b71c6feb9 100644
--- a/tests/test_terms_auth.py
+++ b/tests/test_terms_auth.py
@@ -42,7 +42,8 @@ class TermsTestCase(unittest.HomeserverTestCase):
         hs.config.enable_registration_captcha = False
 
     def test_ui_auth(self):
-        self.hs.config.block_events_without_consent_error = True
+        self.hs.config.user_consent_at_registration = True
+        self.hs.config.user_consent_policy_name = "My Cool Privacy Policy"
         self.hs.config.public_baseurl = "https://example.org"
         self.hs.config.user_consent_version = "1.0"
 
@@ -66,7 +67,7 @@ class TermsTestCase(unittest.HomeserverTestCase):
                 "policies": {
                     "privacy_policy": {
                         "en": {
-                            "name": "Privacy Policy",
+                            "name": "My Cool Privacy Policy",
                             "url": "https://example.org/_matrix/consent?v=1.0",
                         },
                         "version": "1.0"