Use a faster hashing algorithm for testing
http://slacy.com/blog/2012/04/make-your-tests-faster-in-django-1-4/ rake fasttest_lms goes from 48 to 26 seconds.
This commit is contained in:
@@ -172,3 +172,15 @@ FILE_UPLOAD_HANDLERS = (
|
||||
'django.core.files.uploadhandler.MemoryFileUploadHandler',
|
||||
'django.core.files.uploadhandler.TemporaryFileUploadHandler',
|
||||
)
|
||||
|
||||
################### Make tests faster
|
||||
|
||||
#http://slacy.com/blog/2012/04/make-your-tests-faster-in-django-1-4/
|
||||
PASSWORD_HASHERS = (
|
||||
# 'django.contrib.auth.hashers.PBKDF2PasswordHasher',
|
||||
# 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
|
||||
# 'django.contrib.auth.hashers.BCryptPasswordHasher',
|
||||
'django.contrib.auth.hashers.SHA1PasswordHasher',
|
||||
'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||
# 'django.contrib.auth.hashers.CryptPasswordHasher',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user