Fix failing test case for new Django versions

See https://code.djangoproject.com/ticket/34968 for more details
This commit is contained in:
Aleksi Häkli 2024-09-21 11:32:34 +03:00
parent 9472011ed8
commit 07483c6a15

View file

@ -81,7 +81,7 @@ class AccessLogTestCase(AxesTestCase):
""" """
# An impossibly large post dict # An impossibly large post dict
extra_data = {"a" * x: x for x in range(1024)} extra_data = {"too-large-field": "x" * 2 ** 16}
self.login(**extra_data) self.login(**extra_data)
self.assertEqual(len(AccessAttempt.objects.latest("id").post_data), 1024) self.assertEqual(len(AccessAttempt.objects.latest("id").post_data), 1024)