diff options
| author | Tom Christie | 2012-09-14 08:54:58 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-14 08:54:58 +0100 |
| commit | 886f8b47510c830483b5adae1855593cdc3df2dc (patch) | |
| tree | 4e81ac5bdd42b48a22b506dd8f317c505d8a128d /djangorestframework/tests/throttling.py | |
| parent | 3005079824949534ff55f6342d01953a5bed9638 (diff) | |
| download | django-rest-framework-886f8b47510c830483b5adae1855593cdc3df2dc.tar.bz2 | |
Tweak throttles and improve docs
Diffstat (limited to 'djangorestframework/tests/throttling.py')
| -rw-r--r-- | djangorestframework/tests/throttling.py | 2 |
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): |
