diff options
| author | Lily Foote <code@lilyf.org> | 2023-09-19 21:38:13 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-09-20 05:35:49 +0200 |
| commit | 45078a204bb917ed84e7bafa287f019472581ff1 (patch) | |
| tree | 7969db516f940126bd8fe7f5adb68e8bde7988fe /tests/auth_tests/test_views.py | |
| parent | 3623a0c0798f941da4d951c912b2c9057c1a3fd3 (diff) | |
Defined PASSWORD_HASHERS for auth_tests.test_views.ChangelistTests.
auth_tests.test_views.ChangelistTests.test_view_user_password_is_readonly
depends on the password hasher having the three components algorithm,
salt and hash.
The default password hasher (PBKDF2PasswordHasher) has an extra
iterations component, breaking the test.
Diffstat (limited to 'tests/auth_tests/test_views.py')
| -rw-r--r-- | tests/auth_tests/test_views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py index d15a166c98..ba0a77a4dc 100644 --- a/tests/auth_tests/test_views.py +++ b/tests/auth_tests/test_views.py @@ -1361,7 +1361,10 @@ def get_perm(Model, perm): # Redirect in test_user_change_password will fail if session auth hash # isn't updated after password change (#21649) -@override_settings(ROOT_URLCONF="auth_tests.urls_admin") +@override_settings( + ROOT_URLCONF="auth_tests.urls_admin", + PASSWORD_HASHERS=["django.contrib.auth.hashers.MD5PasswordHasher"], +) class ChangelistTests(AuthViewsTestCase): @classmethod def setUpTestData(cls): |
