forked from mirrors/bookwyrm
Fixes remove email domain test
This commit is contained in:
parent
21527803de
commit
bcb78653e9
1 changed files with 2 additions and 4 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue