Adopt test based on Django security release for CVE-2023-24580

This commit is contained in:
Hasan Ramezani 2023-02-17 14:42:49 +01:00 committed by Aleksi Häkli
parent 7f534c0e3b
commit 779fdf496b

View file

@ -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).