mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 08:36:32 +00:00
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")
|
||||
|
||||
view = views.EmailBlocklist.as_view()
|
||||
request = self.factory.post("", domain_id=domain.id)
|
||||
request = self.factory.post("")
|
||||
request.user = self.local_user
|
||||
request.user.is_superuser = True
|
||||
|
||||
result = view(request)
|
||||
|
||||
self.assertIsInstance(result, TemplateResponse)
|
||||
result = view(request, domain_id=domain.id)
|
||||
self.assertEqual(result.status_code, 302)
|
||||
|
||||
self.assertFalse(
|
||||
|
|
Loading…
Reference in a new issue