mirror of https://github.com/zulip/zulip.git
docs: Cover the missing case in DocPageTest.
This commit is contained in:
parent
99186952f6
commit
08d20dce23
|
@ -51,8 +51,8 @@ class DocPageTest(ZulipTestCase):
|
|||
|
||||
if not landing_page:
|
||||
return
|
||||
# Test the URL on the root subdomain with the landing page setting
|
||||
with self.settings(ROOT_DOMAIN_LANDING_PAGE=True):
|
||||
# Test the URL on the root subdomain with the landing page setting
|
||||
result = self.get_doc(url, subdomain="")
|
||||
self.assertEqual(result.status_code, 200)
|
||||
self.assertIn(expected_content, str(result.content))
|
||||
|
@ -64,6 +64,15 @@ class DocPageTest(ZulipTestCase):
|
|||
self.assert_in_success_response(['<meta name="description" content="Zulip combines'], result)
|
||||
self.assert_not_in_success_response(['<meta name="robots" content="noindex,nofollow">'], result)
|
||||
|
||||
# Test the URL on the "zephyr" subdomain with the landing page setting
|
||||
result = self.get_doc(url, subdomain="zephyr")
|
||||
self.assertEqual(result.status_code, 200)
|
||||
self.assertIn(expected_content, str(result.content))
|
||||
for s in extra_strings:
|
||||
self.assertIn(s, str(result.content))
|
||||
if not doc_html_str:
|
||||
self.assert_in_success_response(['<meta name="robots" content="noindex,nofollow">'], result)
|
||||
|
||||
@slow("Tests dozens of endpoints, including generating lots of emails")
|
||||
def test_doc_endpoints(self) -> None:
|
||||
self._test('/api/', 'The Zulip API')
|
||||
|
|
Loading…
Reference in New Issue