Skip to content

Commit

Permalink
Fix password validation tests (#3784)
Browse files Browse the repository at this point in the history
* fix test

* update changelog
  • Loading branch information
tschorr authored May 24, 2023
1 parent 86a129f commit a5b48c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Products/CMFPlone/tests/testRegistrationTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,7 @@ def testTestPasswordValidityPolicy(self):
)
self.assertEqual(
self.registration.testPasswordValidity("abcd", confirm=None),
"Your password must contain at least ${min_chars} characters.",
)
# Password validity is checked with an empty password
# to get a nice help message to show for the input field.
self.assertEqual(
self.registration.testPasswordValidity("", confirm=None),
"Minimum ${min_chars} characters.",
"Your password must contain at least 8 characters.",
)

def testPasValidation(self):
Expand All @@ -149,7 +143,7 @@ def testPasValidation(self):
)
self.assertEqual(
self.registration.pasValidation("password", "abcd"),
"Your password must contain at least ${min_chars} characters.",
"Your password must contain at least 8 characters.",
)

def testNewIdAllowed(self):
Expand Down
1 change: 1 addition & 0 deletions news/3784.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix password validation tests. [tschorr]

0 comments on commit a5b48c0

Please sign in to comment.