Browse Source

Improve test performance by using the md5 hasher for tests.

Alex Gaynor 12 years ago
parent
commit
e81aeb401f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      conftest.py

+ 4 - 0
conftest.py

@@ -39,3 +39,7 @@ def pytest_configure(config):
     )
     settings.SENTRY_KEY = base64.b64encode(os.urandom(40))
     settings.SENTRY_PUBLIC = False
+    # This speeds up the tests considerably, pbkdf2 is by design, slow.
+    settings.PASSWORD_HASHERS = [
+        'django.contrib.auth.hashers.MD5PasswordHasher',
+    ]