From 33cd0f05a781bb5a278e57315fd893d1953638a6 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Wed, 6 Dec 2023 09:29:21 +0000 Subject: [PATCH] test(throttling): Explicitly enable throttling to make test more stable Part-of: --- api/tests/common/test_throttling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/tests/common/test_throttling.py b/api/tests/common/test_throttling.py index 16cd44196..272ff2367 100644 --- a/api/tests/common/test_throttling.py +++ b/api/tests/common/test_throttling.py @@ -269,6 +269,7 @@ def test_throttle_calls_attach_info(method, mocker): def test_allow_request(api_request, settings, mocker): + settings.THROTTLING_ENABLED = True settings.THROTTLING_RATES = {"test": {"rate": "2/s"}} ip = "92.92.92.92" request = api_request.get("/", HTTP_X_FORWARDED_FOR=ip)