mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 12:12:19 +03:00
fix the white spacing
This commit is contained in:
parent
436f61ca21
commit
6844bc2b1f
|
@ -5,6 +5,7 @@ import time
|
||||||
|
|
||||||
from django.core.cache import cache as default_cache
|
from django.core.cache import cache as default_cache
|
||||||
from django.core.exceptions import ImproperlyConfigured
|
from django.core.exceptions import ImproperlyConfigured
|
||||||
|
|
||||||
from rest_framework.settings import api_settings
|
from rest_framework.settings import api_settings
|
||||||
from rest_framework.utils.throttling_duration_parser import (
|
from rest_framework.utils.throttling_duration_parser import (
|
||||||
parse_quantity_and_unit
|
parse_quantity_and_unit
|
||||||
|
|
|
@ -468,7 +468,7 @@ class SimpleRateThrottleTests(TestCase):
|
||||||
def test_parse_rate_returns_tuple_with_none_if_rate_not_provided(self):
|
def test_parse_rate_returns_tuple_with_none_if_rate_not_provided(self):
|
||||||
rate = SimpleRateThrottle().parse_rate(None)
|
rate = SimpleRateThrottle().parse_rate(None)
|
||||||
assert rate == (None, None)
|
assert rate == (None, None)
|
||||||
|
|
||||||
def test_parse_quantity_and_unit_parses_correctly(self):
|
def test_parse_quantity_and_unit_parses_correctly(self):
|
||||||
result = parse_quantity_and_unit("5min")
|
result = parse_quantity_and_unit("5min")
|
||||||
assert result == (5, 'min')
|
assert result == (5, 'min')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user