Select MD5 (faster) password hasher for tests

In the timeline project this reduced test time by 10%.
This commit is contained in:
Lorenz Padberg 2023-04-18 16:52:43 +02:00
parent 25bf90cefd
commit 7fffd6cbae
2 changed files with 10 additions and 0 deletions

View File

@ -34,3 +34,8 @@ class DisableMigrations(dict):
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
# Select faster password hasher during tests
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]