Skip to content

Commit

Permalink
Fix password generator (Significant-Gravitas#5581)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynehamadi authored Oct 6, 2023
1 parent a7c11a9 commit abf88fe
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ def test_value_error(self):
password_generator.generate_password(17)

def test_password_content(self):
password = password_generator.generate_password(8)
self.assertTrue(any(c.islower() for c in password))
self.assertTrue(any(c.isupper() for c in password))
password = password_generator.generate_password()
self.assertTrue(any(c.isdigit() for c in password))
self.assertTrue(
any(c in password_generator.string.punctuation for c in password)
)
self.assertTrue(any(c in password_generator.string.punctuation for c in password))


if __name__ == "__main__":
Expand Down

0 comments on commit abf88fe

Please sign in to comment.