From abf88fe5097770b1da3383a19208b5a23e2371f3 Mon Sep 17 00:00:00 2001 From: merwanehamadi Date: Fri, 6 Oct 2023 12:55:48 -0700 Subject: [PATCH] Fix password generator (#5581) --- .../code/1_password_generator/custom_python/test.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/benchmark/agbenchmark/challenges/deprecated/code/1_password_generator/custom_python/test.py b/benchmark/agbenchmark/challenges/deprecated/code/1_password_generator/custom_python/test.py index d1a941c2..86ce911a 100644 --- a/benchmark/agbenchmark/challenges/deprecated/code/1_password_generator/custom_python/test.py +++ b/benchmark/agbenchmark/challenges/deprecated/code/1_password_generator/custom_python/test.py @@ -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__":