File tree Expand file tree Collapse file tree
accessibility_monitoring_platform/apps/notifications Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Here are all of the reminders for detailed Cases which are overdue or due in the next seven days.
22
33{% for task in tasks %}
4-
5- User: {% if task.user %}{{ task.user.get_full_name }}{% elif task.base_case.auditor %}{{ task.base_case.auditor.get_full_name }}{% else %}Unknown{% endif %}
4+ User who set reminder: {{ task.user.get_full_name }}
65
76Date: {{ task.date|amp_date }}
87
98ID: {{ task.base_case.case_identifier }}
109
11- Case: {{ task.base_case.organisation_name }}
10+ Case: {% if task.base_case.website_name %}{{ task.base_case.website_name }} ({{ task.base_case. organisation_name }}){% else %}{{ task.base_case.organisation_name }}{% endif % }
1211See https://platform.accessibility-monitoring.service.gov.uk{{ task.base_case.get_absolute_url }}
1312
14- Description
13+ Auditor: {% if task.base_case.auditor %}{{ task.base_case.auditor.get_full_name }}{% else %}None{% endif %}
14+
15+ Description:
1516
1617{{ task.description }}
1718
1819------
19-
2020{% endfor %}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments