mirror of https://github.com/zulip/zulip.git
tests: Replace some testserver.com dummy domains with zulip.example.com.
This commit is contained in:
parent
3ff0b64281
commit
f55ec8a026
|
@ -600,7 +600,7 @@ class TestSendCustomEmail(ZulipTestCase):
|
|||
f"--path={path}",
|
||||
f"-u={user.delivery_email}",
|
||||
"--subject=Test email",
|
||||
"--from-name=zulip@testserver.com",
|
||||
"--from-name=zulip@zulip.example.com",
|
||||
"--dry-run",
|
||||
)
|
||||
self.assertEqual(
|
||||
|
|
|
@ -487,10 +487,10 @@ class PasswordResetTest(ZulipTestCase):
|
|||
result["Location"], "/accounts/go/?next=%2Faccounts%2Fpassword%2Freset%2F"
|
||||
)
|
||||
|
||||
mock_get_host.return_value = "www.testserver.com"
|
||||
mock_get_host.return_value = "www.zulip.example.com"
|
||||
with self.settings(
|
||||
ROOT_DOMAIN_LANDING_PAGE=True,
|
||||
EXTERNAL_HOST="www.testserver.com",
|
||||
EXTERNAL_HOST="www.zulip.example.com",
|
||||
):
|
||||
result = self.client_get("/accounts/password/reset/")
|
||||
self.assertEqual(result.status_code, 302)
|
||||
|
@ -519,8 +519,8 @@ class PasswordResetTest(ZulipTestCase):
|
|||
result = self.client_get("/accounts/password/reset/")
|
||||
self.assertEqual(result.status_code, 200)
|
||||
|
||||
mock_get_host.return_value = "www.testserver.com"
|
||||
with self.settings(EXTERNAL_HOST="www.testserver.com", ROOT_SUBDOMAIN_ALIASES=[]):
|
||||
mock_get_host.return_value = "www.zulip.example.com"
|
||||
with self.settings(EXTERNAL_HOST="www.zulip.example.com", ROOT_SUBDOMAIN_ALIASES=[]):
|
||||
result = self.client_get("/accounts/password/reset/")
|
||||
self.assertEqual(result.status_code, 200)
|
||||
|
||||
|
@ -5809,10 +5809,10 @@ class TestLoginPage(ZulipTestCase):
|
|||
self.assertEqual(result.status_code, 302)
|
||||
self.assertEqual(result["Location"], "/accounts/go/?next=%2Fupgrade%2F")
|
||||
|
||||
mock_get_host.return_value = "www.testserver.com"
|
||||
mock_get_host.return_value = "www.zulip.example.com"
|
||||
with self.settings(
|
||||
ROOT_DOMAIN_LANDING_PAGE=True,
|
||||
EXTERNAL_HOST="www.testserver.com",
|
||||
EXTERNAL_HOST="www.zulip.example.com",
|
||||
ROOT_SUBDOMAIN_ALIASES=["test"],
|
||||
):
|
||||
result = self.client_get("/en/login/")
|
||||
|
|
Loading…
Reference in New Issue