mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
test_templates: Fix ToS/Privacy templates.
This commit is contained in:
@@ -216,8 +216,8 @@ class TemplateTestCase(ZulipTestCase):
|
|||||||
|
|
||||||
def test_custom_terms_of_service_template(self):
|
def test_custom_terms_of_service_template(self):
|
||||||
# type: () -> None
|
# type: () -> None
|
||||||
not_configured_message = 'This Zulip server does not have a configured ' \
|
not_configured_message = 'This installation of Zulip does not have a configured ' \
|
||||||
'<strong>terms of service</strong>'
|
'terms of service'
|
||||||
with self.settings(TERMS_OF_SERVICE=None):
|
with self.settings(TERMS_OF_SERVICE=None):
|
||||||
response = self.client_get('/terms/')
|
response = self.client_get('/terms/')
|
||||||
self.assert_in_success_response([not_configured_message], response)
|
self.assert_in_success_response([not_configured_message], response)
|
||||||
@@ -228,8 +228,8 @@ class TemplateTestCase(ZulipTestCase):
|
|||||||
|
|
||||||
def test_custom_privacy_policy_template(self):
|
def test_custom_privacy_policy_template(self):
|
||||||
# type: () -> None
|
# type: () -> None
|
||||||
not_configured_message = 'This Zulip server does not have a configured ' \
|
not_configured_message = 'This installation of Zulip does not have a configured ' \
|
||||||
'<strong>privacy policy</strong>'
|
'privacy policy'
|
||||||
with self.settings(PRIVACY_POLICY=None):
|
with self.settings(PRIVACY_POLICY=None):
|
||||||
response = self.client_get('/privacy/')
|
response = self.client_get('/privacy/')
|
||||||
self.assert_in_success_response([not_configured_message], response)
|
self.assert_in_success_response([not_configured_message], response)
|
||||||
|
|||||||
Reference in New Issue
Block a user