mirror of
https://github.com/django/django.git
synced 2025-07-30 00:24:26 +00:00
Fixed #18157 -- Documented that setting PASSWORD_HASHERS can speed up tests
This commit is contained in:
parent
514e827022
commit
17d6cd9029
1 changed files with 12 additions and 0 deletions
|
@ -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
|
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.
|
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
|
Testing tools
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue