From 9c2cab50cabc74738ba51c35f9d143e4545d7c0a Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Fri, 10 Nov 2017 20:11:55 -0330 Subject: [PATCH] test_docs: Verify that all of our integrations/ docs are rendered. Fixes #7360. --- zerver/tests/test_docs.py | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.py index 20f051245c..1b2e2cdc15 100644 --- a/zerver/tests/test_docs.py +++ b/zerver/tests/test_docs.py @@ -69,16 +69,6 @@ class DocPageTest(ZulipTestCase): self._test('/for/companies/', 'in a company') self._test('/for/working-groups-and-communities/', 'standards bodies') self._test('/plans/', 'Commercial support') - self._test('/integrations/', - 'Over 60 native integrations.', - extra_strings=[ - 'And hundreds more through', - 'Hubot', - 'Zapier', - 'IFTTT' - ]) - self._test('/integrations/doc-html/travis', 'Your Travis CI notifications may look like:') - self._test('/integrations/doc-html/googlesearch', 'This bot allows users to do Google search queries') self._test('/devlogin/', 'Normal users', landing_page=False) self._test('/devtools/', 'Useful development URLs') self._test('/errors/404/', 'Page not found') @@ -109,6 +99,23 @@ class DocPageTest(ZulipTestCase): result = self.client_get('/static/favicon.ico') self.assertEqual(result.status_code, 200) + @slow("Tests dozens of endpoints, including all our integrations docs") + def test_integration_doc_endpoints(self): + # type: () -> None + self._test('/integrations/', + 'Over 60 native integrations.', + extra_strings=[ + 'And hundreds more through', + 'Hubot', + 'Zapier', + 'IFTTT' + ]) + + for integration in INTEGRATIONS.keys(): + url = '/integrations/doc-html/{}'.format(integration) + self._test(url, '') + + class IntegrationTest(TestCase): def test_check_if_every_integration_has_logo_that_exists(self): # type: () -> None