From: James Valleroy Date: Sat, 18 Feb 2023 09:09:03 -0500 Subject: Adopt test based on Django security release Apply patch from upstream PR to fix test. Origin: https://github.com/jazzband/django-axes/pull/1004 Bug-Debian: https://bugs.debian.org/1031461 --- tests/test_logging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_logging.py b/tests/test_logging.py index 35ae52e..ae2a7c6 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -69,6 +69,7 @@ class AccessLogTestCase(AxesTestCase): self.assertIsNotNone(AccessLog.objects.latest("id").logout_time) + @override_settings(DATA_UPLOAD_MAX_NUMBER_FIELDS=1500) def test_log_data_truncated(self): """ Test that get_query_str properly truncates data to the max_length (default 1024).