summaryrefslogtreecommitdiff
path: root/tests/test_sqlite.py
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2012-04-30 21:40:02 +0300
committerAnssi Kääriäinen <akaariai@gmail.com>2012-04-30 22:10:27 +0300
commit0819957eda318205e17591dccd81482701eab25c (patch)
tree333b97e16a7a80fc295addea437b40024f4f1568 /tests/test_sqlite.py
parent8fad77da9597e0dd9fca1eaa3a7b605f76501872 (diff)
Use faster password hasher in sqlite tests
Fixed #18163
Diffstat (limited to 'tests/test_sqlite.py')
-rw-r--r--tests/test_sqlite.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py
index 41c3b25b68..c04ef97cd0 100644
--- a/tests/test_sqlite.py
+++ b/tests/test_sqlite.py
@@ -22,3 +22,9 @@ DATABASES = {
}
SECRET_KEY = "django_tests_secret_key"
+# To speed up tests under SQLite we use the MD5 hasher as the default one.
+# This should not be needed under other databases, as the relative speedup
+# is only marginal there.
+PASSWORD_HASHERS = (
+ 'django.contrib.auth.hashers.MD5PasswordHasher',
+)