Skip to content

Commit

Permalink
Check a system email is used
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn committed Jan 9, 2025
1 parent 6dcc660 commit 8fddfd5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/tests/emails_tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ def test_email_rendered_detail_get_permission(client):
assert "Dear AnonymousUser," in response.rendered_content
assert "Test content" in response.rendered_content

# Should use a system email without an unsubscribe link
# as the generated email is for the anonymous user, not the request.user
assert (
"This is an automated service email from" in response.rendered_content
)


@pytest.mark.django_db
def test_email_rendered_detail_get_post_permission(client):
Expand Down

0 comments on commit 8fddfd5

Please sign in to comment.