Abuse reports: moderator form for resolving/dismissing + notification #173
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user