Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Move URL redirect tests for portico landing pages.
Lauryn Menard9ad6457f32a3
diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.pyindex 82132ab055c..20975bf6287 100644--- a/zerver/tests/test_docs.py+++ b/zerver/tests/test_docs.py@@ -188,17 +188,6 @@ class DocPageTest(ZulipTestCase):)self.assertEqual(result.status_code, 404)- result = self.client_get("/new-user/")- self.assertEqual(result.status_code, 301)- self.assertIn("hello", result["Location"])-- result = self.client_get("/developer-community/")- self.assertEqual(result.status_code, 301)- self.assertIn("development-community", result["Location"])-- result = self.client_get("/for/companies/", follow=True)- self.assert_in_success_response(["Communication efficiency represents"], result)-def test_open_organizations_endpoint(self) -> None:realm = get_realm("zulip")realm.want_advertise_in_communities_directory = Truediff --git a/zerver/tests/test_urls.py b/zerver/tests/test_urls.pyindex fe5fa6c080d..7e5c1450bbd 100644--- a/zerver/tests/test_urls.py+++ b/zerver/tests/test_urls.py@@ -182,3 +182,7 @@ class RedirectURLTest(ZulipTestCase):for redirect in LANDING_PAGE_REDIRECTS:result = self.client_get(redirect.old_url, follow=True)self.assert_in_success_response(["Download"], result)++ result = self.client_get(redirect.old_url)+ self.assertEqual(result.status_code, 301)+ self.assertIn(redirect.new_url, result["Location"])