Merged in feature/improve-test-speed (pull request #61)

Select MD5 (faster) password hasher for tests

Approved-by: Christian Cueni
This commit is contained in:
Lorenz Padberg 2023-04-20 15:45:06 +00:00
commit 766af5444a
2 changed files with 10 additions and 0 deletions

View File

@ -34,3 +34,8 @@ class DisableMigrations(dict):
MIGRATION_MODULES = DisableMigrations() MIGRATION_MODULES = DisableMigrations()
# Select faster password hasher during tests
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]

View File

@ -26,3 +26,8 @@ REST_FRAMEWORK["DEFAULT_THROTTLE_RATES"] = {
} }
RATELIMIT_ENABLE = False RATELIMIT_ENABLE = False
# Select faster password hasher during tests
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]