From 1d45e8b4ccc7175605512bd51bf727e680441dae Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 27 Jan 2022 19:43:42 -0800 Subject: [PATCH] Updates ip blocklists tests --- bookwyrm/tests/views/admin/test_ip_blocklist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/tests/views/admin/test_ip_blocklist.py b/bookwyrm/tests/views/admin/test_ip_blocklist.py index 498ed9b8..af63ffaf 100644 --- a/bookwyrm/tests/views/admin/test_ip_blocklist.py +++ b/bookwyrm/tests/views/admin/test_ip_blocklist.py @@ -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())