Ticket #18163: ticket_18163.diff

File ticket_18163.diff, 827 bytes (added by akaariai, 3 years ago)
  • tests/test_sqlite.py

    diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py
    index 41c3b25..8d3d28e 100644
    a b DATABASES = { 
    2222}
    2323
    2424SECRET_KEY = "django_tests_secret_key"
     25
     26# To speed up tests under SQLite we use the MD5 hasher as the default one.
     27# This should not be needed under other databases, as the speedup will be
     28# lost in the noise there.
     29PASSWORD_HASHERS = (
     30    'django.contrib.auth.hashers.MD5PasswordHasher',
     31    'django.contrib.auth.hashers.PBKDF2PasswordHasher',
     32    'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
     33    'django.contrib.auth.hashers.BCryptPasswordHasher',
     34    'django.contrib.auth.hashers.SHA1PasswordHasher',
     35    'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
     36    'django.contrib.auth.hashers.CryptPasswordHasher',
     37)
Back to Top