add the following to test settings
# By default, Django uses a computationally difficult algorithm for passwords hashing.
# We don't need such a strong algorithm in tests, so use MD5
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]
or in base settings
import sys
TESTING = 'test' in sys.argv
if TESTING:
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.MD5PasswordHasher',
]
Also when running tests, use ./manage.py test --parallel