mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-12 15:34:50 +02:00
Fix test
This commit is contained in:
parent
d61e17a4ad
commit
c5f83b937d
2 changed files with 2 additions and 3 deletions
|
@ -195,7 +195,7 @@ class TestEmails(TestCase):
|
||||||
current_date = datetime.now().strftime("%m%d%Y")
|
current_date = datetime.now().strftime("%m%d%Y")
|
||||||
current_filename = f"domain-metadata-{current_date}.zip"
|
current_filename = f"domain-metadata-{current_date}.zip"
|
||||||
|
|
||||||
response = email.send_email_with_attachment(
|
email.send_email_with_attachment(
|
||||||
sender_email, recipient_email, subject, body, attachment_file, self.mock_client
|
sender_email, recipient_email, subject, body, attachment_file, self.mock_client
|
||||||
)
|
)
|
||||||
# Assert that the `send_raw_email` method of the mocked SES client was called with the expected params
|
# Assert that the `send_raw_email` method of the mocked SES client was called with the expected params
|
||||||
|
|
|
@ -51,11 +51,10 @@ def send_templated_email(
|
||||||
destination["BccAddresses"] = [bcc_address]
|
destination["BccAddresses"] = [bcc_address]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
if file is None:
|
if file is None:
|
||||||
ses_client.send_email(
|
ses_client.send_email(
|
||||||
FromEmailAddress=settings.DEFAULT_FROM_EMAIL,
|
FromEmailAddress=settings.DEFAULT_FROM_EMAIL,
|
||||||
Destination={"ToAddresses": [to_address]},
|
Destination=destination,
|
||||||
Content={
|
Content={
|
||||||
"Simple": {
|
"Simple": {
|
||||||
"Subject": {"Data": subject},
|
"Subject": {"Data": subject},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue