From 07483c6a157c503abb17ee1412cc53d07c2d8631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksi=20H=C3=A4kli?= Date: Sat, 21 Sep 2024 11:32:34 +0300 Subject: [PATCH] Fix failing test case for new Django versions See https://code.djangoproject.com/ticket/34968 for more details --- tests/test_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_logging.py b/tests/test_logging.py index 9394031..c0c4b66 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -81,7 +81,7 @@ class AccessLogTestCase(AxesTestCase): """ # 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.assertEqual(len(AccessAttempt.objects.latest("id").post_data), 1024)