Fixes remove email domain test

This commit is contained in:
Mouse Reeve 2021-09-08 17:39:22 -07:00
parent 21527803de
commit bcb78653e9

View file

@ -61,13 +61,11 @@ class EmailBlocklistViews(TestCase):
domain = models.EmailBlocklist.objects.create(domain="gmail.com") domain = models.EmailBlocklist.objects.create(domain="gmail.com")
view = views.EmailBlocklist.as_view() view = views.EmailBlocklist.as_view()
request = self.factory.post("", domain_id=domain.id) request = self.factory.post("")
request.user = self.local_user request.user = self.local_user
request.user.is_superuser = True request.user.is_superuser = True
result = view(request) result = view(request, domain_id=domain.id)
self.assertIsInstance(result, TemplateResponse)
self.assertEqual(result.status_code, 302) self.assertEqual(result.status_code, 302)
self.assertFalse( self.assertFalse(