Skip to content

Commit 7b066b5

Browse files
committed
Fixed ci tests.
1 parent ce8ab8f commit 7b066b5

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

django_pwned/validators.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,9 @@ def validate(self, password: str, user=None):
7777
)
7878

7979
def get_help_text(self):
80-
return (
81-
_("Passwords shorter than %(safe_length)d characters must include a number and a lowercase letter.") % {
82-
"safe_length": self.safe_length
83-
}
84-
)
80+
return _("Passwords shorter than %(safe_length)d characters must include a number and a lowercase letter.") % {
81+
"safe_length": self.safe_length
82+
}
8583

8684

8785
class MinimumUniqueCharactersPasswordValidator:
@@ -105,8 +103,6 @@ def validate(self, password: str, user=None):
105103
)
106104

107105
def get_help_text(self):
108-
return (
109-
_("Your password should contain at least %(min_unique_characters)d unique characters.") % {
110-
"min_unique_characters": self.min_unique_characters
111-
}
112-
)
106+
return _("Your password should contain at least %(min_unique_characters)d unique characters.") % {
107+
"min_unique_characters": self.min_unique_characters
108+
}

0 commit comments

Comments
 (0)