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

This commit is contained in:
Alex Vandiver 2023-02-03 17:18:00 +00:00 committed by Alex Vandiver
parent a1967a7f2d
commit dd21e472e7
1 changed files with 3 additions and 0 deletions

View File

@ -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: