diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-06-09 20:41:46 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-06-09 20:41:46 +0200 |
| commit | 17d6cd90299e39823e80a005e7a04bc24ee8af4c (patch) | |
| tree | a0fb9b689d51a22bee045fb6b55475d7895a6b48 /docs | |
| parent | 514e82702232139ec76f36a6e1fa4b63f47c6990 (diff) | |
Fixed #18157 -- Documented that setting PASSWORD_HASHERS can speed up tests
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/testing.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt index 4cc566b5dd..95fb6f8eb2 100644 --- a/docs/topics/testing.txt +++ b/docs/topics/testing.txt @@ -545,6 +545,18 @@ failed and erroneous tests. If all the tests pass, the return code is 0. This feature is useful if you're using the test-runner script in a shell script and need to test for success or failure at that level. +Speeding up the tests +--------------------- + +In recent versions of Django, the default password hasher is rather slow by +design. If during your tests you are authenticating many users, you may want +to use a custom settings file and set the :setting:`PASSWORD_HASHERS` setting +to a faster hashing algorithm:: + + PASSWORD_HASHERS = ( + 'django.contrib.auth.hashers.MD5PasswordHasher', + ) + Testing tools ============= |
