We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 526f9f6 commit ba87d7dCopy full SHA for ba87d7d
password_policies/tests/test_views.py
@@ -96,6 +96,11 @@ def test_password_change_wrong_validators(self):
96
changes the user's password, creates a new password history entry
97
for the user and issues a redirect.
98
"""
99
+ data = {
100
+ "old_password": passwords[-1],
101
+ "new_password1": "Chah+pher9k",
102
+ "new_password2": "Chah+pher9k",
103
+ }
104
msg = 'This password is too short. It must contain at least 20 characters.'
105
self.client.login(username="alice", password=data["old_password"])
106
response = self.client.post(reverse("password_change"), data=data)
0 commit comments