Skip to content

Commit 4273c93

Browse files
committed
2127: Add ability to see email contents
1 parent 320f9a9 commit 4273c93

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • accessibility_monitoring_platform/apps/notifications/tests

accessibility_monitoring_platform/apps/notifications/tests/test_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,9 @@ def test_email_all_specialists_all_detailed_reminders_due(mailoutbox):
10461046
specialist_group.user_set.add(specialist_2)
10471047

10481048
detailed_case_1: DetailedCase = DetailedCase.objects.create(
1049-
organisation_name="Detailed Organisation One"
1049+
organisation_name="Detailed Organisation One",
1050+
website_name="Website name",
1051+
auditor=specialist_1,
10501052
)
10511053
Task.objects.create(
10521054
type=Task.Type.REMINDER,
@@ -1090,3 +1092,5 @@ def test_email_all_specialists_all_detailed_reminders_due(mailoutbox):
10901092
assert "First reminder description" in mailoutbox[0].body
10911093
assert "Second reminder description" in mailoutbox[0].body
10921094
assert "Third reminder description" not in mailoutbox[0].body
1095+
1096+
# print(mailoutbox[0].message()) # Visible when run with pytest -s

0 commit comments

Comments
 (0)