Abuse reports: moderator form for resolving/dismissing + notification #173

Merged
Oleg-Komarov merged 7 commits from resolve-report-form into main 2024-06-07 17:04:54 +02:00
Showing only changes of commit 5c6369070d - Show all commits

View File

@ -80,5 +80,6 @@ class ResolveReportTest(TestCase):
self.assertEqual(response.status_code, 302) self.assertEqual(response.status_code, 302)
report.refresh_from_db() report.refresh_from_db()
self.assertEqual(report.status, AbuseReport.STATUSES.RESOLVED) self.assertEqual(report.status, AbuseReport.STATUSES.RESOLVED)
self.assertEqual(report.processed_by, moderator)
new_notification_nr = Notification.objects.filter(recipient=report.reporter).count() new_notification_nr = Notification.objects.filter(recipient=report.reporter).count()
self.assertEqual(new_notification_nr, notification_nr + 1) self.assertEqual(new_notification_nr, notification_nr + 1)