Add mocks

This commit is contained in:
zandercymatics 2023-12-21 10:25:13 -07:00
parent 9e65d687ac
commit 5c892dcec5
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 49 additions and 51 deletions

View file

@ -20,7 +20,7 @@ def send_templated_email(template_name: str, subject_template_name: str, to_addr
context as Django's HTML templates. context gives additional information
that the template may use.
"""
print(f"An email was sent! Template name: {template_name} to {to_address}")
template = get_template(template_name)
email_body = template.render(context=context)