aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/throttling.py
diff options
context:
space:
mode:
authorTom Christie2012-09-14 08:54:58 +0100
committerTom Christie2012-09-14 08:54:58 +0100
commit886f8b47510c830483b5adae1855593cdc3df2dc (patch)
tree4e81ac5bdd42b48a22b506dd8f317c505d8a128d /djangorestframework/tests/throttling.py
parent3005079824949534ff55f6342d01953a5bed9638 (diff)
downloaddjango-rest-framework-886f8b47510c830483b5adae1855593cdc3df2dc.tar.bz2
Tweak throttles and improve docs
Diffstat (limited to 'djangorestframework/tests/throttling.py')
-rw-r--r--djangorestframework/tests/throttling.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/djangorestframework/tests/throttling.py b/djangorestframework/tests/throttling.py
index 9ee4ffa4..3033614f 100644
--- a/djangorestframework/tests/throttling.py
+++ b/djangorestframework/tests/throttling.py
@@ -14,10 +14,12 @@ from djangorestframework.response import Response
class User3SecRateThrottle(UserRateThrottle):
rate = '3/sec'
+ scope = 'seconds'
class User3MinRateThrottle(UserRateThrottle):
rate = '3/min'
+ scope = 'minutes'
class MockView(APIView):