Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

subdomains: Extend tests for for same-host when STATIC_URL has domain.

Alex Vandiverdd21e472e7da
diff --git a/zerver/tests/test_subdomains.py b/zerver/tests/test_subdomains.py
index 33549a1167a..1c2c7956e5e 100644
--- a/zerver/tests/test_subdomains.py
+++ b/zerver/tests/test_subdomains.py
@@ -84,6 +84,9 @@ class SubdomainsTest(ZulipTestCase):
self.assertTrue(test(f"{settings.STATIC_URL}/x"))
self.assertFalse(test(evil_url))
self.assertFalse(test(f"{evil_url}/x"))
+ self.assertTrue(test(f"{realm.uri}"))
+ self.assertTrue(test("/static/images/logo/zulip-org-logo.svg"))
+ self.assertTrue(test("/anything"))
@use_s3_backend
def test_is_static_or_current_realm_url_with_s3(self) -> None: