aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/runtests
diff options
context:
space:
mode:
authorTom Christie2013-02-13 12:36:05 +0000
committerTom Christie2013-02-13 12:36:05 +0000
commit72412b69f02201e7a86a1b02b56b3d9ddc26c66d (patch)
tree56093738a2807741f587fc5c5587d01503fbda29 /rest_framework/runtests
parentb58e763287a235e93a9a64fe8952f2a3f1152729 (diff)
downloaddjango-rest-framework-72412b69f02201e7a86a1b02b56b3d9ddc26c66d.tar.bz2
Set PASSWORD_HASHERS to massively speed up tests (almost x10)
Diffstat (limited to 'rest_framework/runtests')
-rw-r--r--rest_framework/runtests/settings.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/rest_framework/runtests/settings.py b/rest_framework/runtests/settings.py
index dd5d9dc3..03bfc216 100644
--- a/rest_framework/runtests/settings.py
+++ b/rest_framework/runtests/settings.py
@@ -102,6 +102,15 @@ INSTALLED_APPS = (
STATIC_URL = '/static/'
+PASSWORD_HASHERS = (
+ 'django.contrib.auth.hashers.SHA1PasswordHasher',
+ 'django.contrib.auth.hashers.PBKDF2PasswordHasher',
+ 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
+ 'django.contrib.auth.hashers.BCryptPasswordHasher',
+ 'django.contrib.auth.hashers.MD5PasswordHasher',
+ 'django.contrib.auth.hashers.CryptPasswordHasher',
+)
+
import django
if django.VERSION < (1, 3):