Skip to content

Commit

Permalink
Small change to test to check signer name
Browse files Browse the repository at this point in the history
  • Loading branch information
guffee23 committed Dec 12, 2024
1 parent b35129d commit 2d6819c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_send.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_email_dates(

mock_settings = mocker.patch("regtech_mail_api.internal.settings")
mock_settings.from_addr = "[email protected]"
mock_settings.beta_body_template = "\nCongratulations! This email confirms that Test User submitted a filing on {formatted_date}. The confirmation number for this filing is {confirmation_id}.{line_break}The beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at [email protected] to share feedback or return to the platform to upload a new file and continue testing.\n"
mock_settings.beta_body_template = "\nCongratulations! This email confirms that {signer_name} submitted a filing on {formatted_date}. The confirmation number for this filing is {confirmation_id}.{line_break}The beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at [email protected] to share feedback or return to the platform to upload a new file and continue testing.\n"
res = client.post(
"/internal/confirmation/send",
data=json.dumps(
Expand Down Expand Up @@ -186,7 +186,7 @@ def test_confirmation_send(

mock_settings = mocker.patch("regtech_mail_api.internal.settings")
mock_settings.from_addr = "[email protected]"
mock_settings.beta_body_template = "\nCongratulations! This email confirms that Test User submitted a filing on {formatted_date}. The confirmation number for this filing is {confirmation_id}.{line_break}The beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at [email protected] to share feedback or return to the platform to upload a new file and continue testing.\n"
mock_settings.beta_body_template = "\nCongratulations! This email confirms that {signer_name} submitted a filing on {formatted_date}. The confirmation number for this filing is {confirmation_id}.{line_break}The beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at [email protected] to share feedback or return to the platform to upload a new file and continue testing.\n"

res = client.post(
"/internal/confirmation/send",
Expand Down Expand Up @@ -214,7 +214,7 @@ def test_confirmation_send(
assert res.json()["email"] == expected_email

mock_settings.environment = "PROD"
mock_settings.prod_body_template = "\nCongratulations! This email confirms that Test User submitted a filing on {formatted_date} was successful. The confirmation number for this filing is {confirmation_id}.{line_break}If you have any questions or need additional support, email our support staff at [email protected].\n"
mock_settings.prod_body_template = "\nCongratulations! This email confirms that {signer_name} submitted a filing on {formatted_date} was successful. The confirmation number for this filing is {confirmation_id}.{line_break}If you have any questions or need additional support, email our support staff at [email protected].\n"
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 [email protected].\n",
Expand Down

0 comments on commit 2d6819c

Please sign in to comment.