mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Set PASSWORD_HASHERS to massively speed up tests (almost x10)
This commit is contained in:
parent
b58e763287
commit
72412b69f0
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user