This commit is contained in:
Rebecca Hsieh 2024-03-05 12:21:41 -08:00
parent d61e17a4ad
commit c5f83b937d
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -195,7 +195,7 @@ class TestEmails(TestCase):
current_date = datetime.now().strftime("%m%d%Y")
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
)
# Assert that the `send_raw_email` method of the mocked SES client was called with the expected params

View file

@ -51,11 +51,10 @@ def send_templated_email(
destination["BccAddresses"] = [bcc_address]
try:
if file is None:
ses_client.send_email(
FromEmailAddress=settings.DEFAULT_FROM_EMAIL,
Destination={"ToAddresses": [to_address]},
Destination=destination,
Content={
"Simple": {
"Subject": {"Data": subject},