Set PASSWORD_HASHERS to massively speed up tests (almost x10)

This commit is contained in:
Tom Christie 2013-02-13 12:36:05 +00:00
parent b58e763287
commit 72412b69f0

View File

@ -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):