Fixes delete test

This commit is contained in:
Mouse Reeve 2021-09-08 16:35:36 -07:00
parent b891f32707
commit 21527803de

View file

@ -61,7 +61,7 @@ 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(f"/settings/email-blocklist/{domain.id}/delete") request = self.factory.post("", domain_id=domain.id)
request.user = self.local_user request.user = self.local_user
request.user.is_superuser = True request.user.is_superuser = True