fix the white spacing

This commit is contained in:
Pravin Kamble 2023-08-21 22:20:41 +05:30
parent 436f61ca21
commit 6844bc2b1f
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import time
from django.core.cache import cache as default_cache
from django.core.exceptions import ImproperlyConfigured
from rest_framework.settings import api_settings
from rest_framework.utils.throttling_duration_parser import (
parse_quantity_and_unit

View File

@ -468,7 +468,7 @@ class SimpleRateThrottleTests(TestCase):
def test_parse_rate_returns_tuple_with_none_if_rate_not_provided(self):
rate = SimpleRateThrottle().parse_rate(None)
assert rate == (None, None)
def test_parse_quantity_and_unit_parses_correctly(self):
result = parse_quantity_and_unit("5min")
assert result == (5, 'min')