mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Clean up the comments
This commit is contained in:
parent
c540a324c7
commit
0725ab8e59
2 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ class TestEmails(TestCase):
|
|||
@override_settings(IS_PRODUCTION=False, BASE_URL="https://getgov-rh.app.cloud.gov")
|
||||
def test_email_non_production_subject_and_url_check(self):
|
||||
"""Test sending an email in production that:
|
||||
1. Does prefix in the email subject ([GETGOV-RH])
|
||||
1. Does prefix in the email subject (ie [GETGOV-RH])
|
||||
2. Uses the sandbox url in the email body (ie getgov-rh.app.cloud.gov)"""
|
||||
with boto3_mocking.clients.handler_for("sesv2", self.mock_client_class):
|
||||
send_templated_email(
|
||||
|
|
|
@ -57,7 +57,7 @@ def send_templated_email( # noqa
|
|||
env_name = re.sub(r"^https?://", "", env_base_url).split(".")[0]
|
||||
# To add to subject lines ie [GETGOV-RH]
|
||||
prefix = f"[{env_name.upper()}] " if not settings.IS_PRODUCTION else ""
|
||||
# For email links
|
||||
# For email links ie getgov-rh.app.cloud.gov
|
||||
manage_url = env_base_url if not settings.IS_PRODUCTION else "https://manage.get.gov"
|
||||
|
||||
# Adding to context
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue