mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 08:36:32 +00:00
Updates ip blocklists tests
This commit is contained in:
parent
778975d492
commit
1d45e8b4cc
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class IPBlocklistViews(TestCase):
|
|||
"""there are so many views, this just makes sure it LOADS"""
|
||||
view = views.IPBlocklist.as_view()
|
||||
form = forms.IPBlocklistForm()
|
||||
form["address"] = "0.0.0.0"
|
||||
form.data["address"] = "0.0.0.0"
|
||||
|
||||
request = self.factory.post("", form.data)
|
||||
request.user = self.local_user
|
||||
|
@ -70,4 +70,4 @@ class IPBlocklistViews(TestCase):
|
|||
request.user.is_superuser = True
|
||||
|
||||
view(request, block.id)
|
||||
self.assertFalse(models.Block.objects.exists())
|
||||
self.assertFalse(models.IPBlocklist.objects.exists())
|
||||
|
|
Loading…
Reference in a new issue