Clean up the comments

This commit is contained in:
Rebecca Hsieh 2025-02-12 10:31:53 -08:00
parent c540a324c7
commit 0725ab8e59
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

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

View file

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