From fea49b77d507089cbde89b06167b13adc6b99677 Mon Sep 17 00:00:00 2001 From: Pravin Kamble Date: Mon, 21 Aug 2023 21:51:20 +0530 Subject: [PATCH] update the tests --- tests/test_throttling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_throttling.py b/tests/test_throttling.py index 315ffc575..2cfdecd4f 100644 --- a/tests/test_throttling.py +++ b/tests/test_throttling.py @@ -471,11 +471,11 @@ class SimpleRateThrottleTests(TestCase): def test_parse_quantity_and_unit_parses_correctly(self): result = parse_quantity_and_unit("5min") - assert result == {'quantity': 5, 'unit': 'min'} + assert result == (5, 'min') result = parse_quantity_and_unit("h") - assert result == {'quantity': 1, 'unit': 'h'} + assert result == (1, 'h') result = parse_quantity_and_unit("123s") - assert result == {'quantity': 123, 'unit': 's'} + assert result == (123, 's') def test_allow_request_returns_true_if_rate_is_none(self): assert SimpleRateThrottle().allow_request(request={}, view={}) is True