Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Move test for non-existent integration to integration doc test.
Lauryn Menard17974cafbc5e
diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.pyindex 20975bf6287..da348cf2943 100644--- a/zerver/tests/test_docs.py+++ b/zerver/tests/test_docs.py@@ -181,13 +181,6 @@ class DocPageTest(ZulipTestCase):self._test("/errors/5xx/", "Internal server error")self._test("/emails/", "manually generate most of the emails by clicking")- result = self.client_get(- "/integrations/doc-html/nonexistent_integration",- follow=True,- HTTP_X_REQUESTED_WITH="XMLHttpRequest",- )- self.assertEqual(result.status_code, 404)-def test_open_organizations_endpoint(self) -> None:realm = get_realm("zulip")realm.want_advertise_in_communities_directory = True@@ -225,6 +218,13 @@ class DocPageTest(ZulipTestCase):url = f"/integrations/doc-html/{integration}"self._test(url, "", doc_html_str=True)+ result = self.client_get(+ "/integrations/doc-html/nonexistent_integration",+ follow=True,+ HTTP_X_REQUESTED_WITH="XMLHttpRequest",+ )+ self.assertEqual(result.status_code, 404)+def test_integration_pages_open_graph_metadata(self) -> None:url = "/integrations/doc/github"title = '<meta property="og:title" content="Connect GitHub to Zulip" />'