mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-31 03:44:25 +01:00
Update test.py (#5721)
This commit is contained in:
@@ -16,13 +16,9 @@ class TestPasswordGenerator(unittest.TestCase):
|
||||
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__":
|
||||
|
||||
Reference in New Issue
Block a user