From 0f61d590cc52021e6c77187a342698c6c8d530eb Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Mon, 30 Dec 2019 21:09:45 +0100 Subject: [PATCH] rate_limiter: Set RATE_LIMITING_RULES rules to empty in test_settings. This makes the state cleaner for the tests. Tests that want to have rate limiting set up their own desired rules anyway, and having some pre-existing ones from the default settings can conflict with the desired ones. --- zproject/test_settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zproject/test_settings.py b/zproject/test_settings.py index b5434e5db0..318e991bde 100644 --- a/zproject/test_settings.py +++ b/zproject/test_settings.py @@ -219,3 +219,8 @@ SOCIAL_AUTH_SAML_ENABLED_IDPS = { "display_name": "Test IdP", } } + +RATE_LIMITING_RULES = { + 'api_by_user': [], + 'authenticate': [], +}