From aa5007ae60195dab262c489748cb497fb5f47e04 Mon Sep 17 00:00:00 2001 From: jcadam14 <41971533+jcadam14@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:55:30 -0700 Subject: [PATCH] Updated text based on natalia's findings (#60) --- src/regtech_mail_api/internal.py | 6 +++--- tests/test_send.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/regtech_mail_api/internal.py b/src/regtech_mail_api/internal.py index 41c67e4..28d7906 100644 --- a/src/regtech_mail_api/internal.py +++ b/src/regtech_mail_api/internal.py @@ -35,15 +35,15 @@ class ConfirmationRequest(BaseModel): prod_body_template = """ - Congratulations! This email confirms that {signer_name} submitted a filing on {formatted_date} was successful. The confirmation number for this filing is {confirmation_id}. + Congratulations! This email confirms that {signer_name} submitted a filing on {formatted_date}. The confirmation number for this filing is {confirmation_id}. If you have any questions or need additional support, email our support staff at sblhelp@cfpb.gov. """ beta_body_template = """ - Congratulations! This email confirms that {signer_name} submitted a filing on {formatted_date} was successful. The confirmation number for this filing is {confirmation_id}. + Congratulations! This email confirms that {signer_name} submitted a filing on {formatted_date}. The confirmation number for this filing is {confirmation_id}. - The beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at sblhelp@cfpb.gov to share feedback or upload a new file to continue testing. + The beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at sblhelp@cfpb.gov to share feedback or return to the platform to upload a new file and continue testing. """ diff --git a/tests/test_send.py b/tests/test_send.py index 61b72bc..1dd79c4 100644 --- a/tests/test_send.py +++ b/tests/test_send.py @@ -137,7 +137,7 @@ def test_email_dates( expected_email = { "subject": "[BETA] Small Business Lending Data Filing Confirmation", - "body": "\nCongratulations! This email confirms that Test User submitted a filing on March 15, 2024 at 6:10 a.m. EST was successful. The confirmation number for this filing is test.\n\nThe beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at sblhelp@cfpb.gov to share feedback or upload a new file to continue testing.\n", + "body": "\nCongratulations! This email confirms that Test User submitted a filing on March 15, 2024 at 6:10 a.m. EST. The confirmation number for this filing is test.\n\nThe beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at sblhelp@cfpb.gov to share feedback or return to the platform to upload a new file and continue testing.\n", "from_addr": "test@cfpb.gov", "to": ["test@cfpb.gov"], "cc": None, @@ -165,7 +165,7 @@ def test_email_dates( expected_email = { "subject": "[BETA] Small Business Lending Data Filing Confirmation", - "body": "\nCongratulations! This email confirms that Test User submitted a filing on Sept. 15, 2024 at 1:10 p.m. EST was successful. The confirmation number for this filing is test.\n\nThe beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at sblhelp@cfpb.gov to share feedback or upload a new file to continue testing.\n", + "body": "\nCongratulations! This email confirms that Test User submitted a filing on Sept. 15, 2024 at 1:10 p.m. EST. The confirmation number for this filing is test.\n\nThe beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at sblhelp@cfpb.gov to share feedback or return to the platform to upload a new file and continue testing.\n", "from_addr": "test@cfpb.gov", "to": ["test@cfpb.gov"], "cc": None, @@ -194,7 +194,7 @@ def test_confirmation_send( expected_email = { "subject": "[BETA] Small Business Lending Data Filing Confirmation", - "body": "\nCongratulations! This email confirms that Test User submitted a filing on Nov. 20, 2024 at 1:51 p.m. EST was successful. The confirmation number for this filing is test.\n\nThe beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at sblhelp@cfpb.gov to share feedback or upload a new file to continue testing.\n", + "body": "\nCongratulations! This email confirms that Test User submitted a filing on Nov. 20, 2024 at 1:51 p.m. EST. The confirmation number for this filing is test.\n\nThe beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at sblhelp@cfpb.gov to share feedback or return to the platform to upload a new file and continue testing.\n", "from_addr": "test@cfpb.gov", "to": ["test@cfpb.gov"], "cc": None, @@ -211,7 +211,7 @@ def test_confirmation_send( mock_settings.from_addr = "test@cfpb.gov" expected_email = { "subject": "Small Business Lending Data Filing Confirmation", - "body": "\nCongratulations! This email confirms that Test User submitted a filing on Nov. 20, 2024 at 1:51 p.m. EST was successful. The confirmation number for this filing is test.\n\nIf you have any questions or need additional support, email our support staff at sblhelp@cfpb.gov.\n", + "body": "\nCongratulations! This email confirms that Test User submitted a filing on Nov. 20, 2024 at 1:51 p.m. EST. The confirmation number for this filing is test.\n\nIf you have any questions or need additional support, email our support staff at sblhelp@cfpb.gov.\n", "from_addr": "test@cfpb.gov", "to": ["test_contact@cfpb.gov", "test@cfpb.gov"], "cc": None,