diff options
author | merwanehamadi <merwanehamadi@gmail.com> | 2023-10-13 06:56:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 06:56:52 -0700 |
commit | 93e3ec36ed6cd9e5e60585f016ad3bef4e1c52cb (patch) | |
tree | ab26bb74546abeef96e9c957118f11e981b04734 /benchmark | |
parent | da-agent entering the arena (#5706) (diff) | |
download | Auto-GPT-93e3ec36ed6cd9e5e60585f016ad3bef4e1c52cb.tar.gz Auto-GPT-93e3ec36ed6cd9e5e60585f016ad3bef4e1c52cb.tar.bz2 Auto-GPT-93e3ec36ed6cd9e5e60585f016ad3bef4e1c52cb.zip |
Update test.py (#5721)
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/agbenchmark/challenges/verticals/code/2_password_generator/custom_python/test.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/benchmark/agbenchmark/challenges/verticals/code/2_password_generator/custom_python/test.py b/benchmark/agbenchmark/challenges/verticals/code/2_password_generator/custom_python/test.py index d1a941c23..86ce911ab 100644 --- a/benchmark/agbenchmark/challenges/verticals/code/2_password_generator/custom_python/test.py +++ b/benchmark/agbenchmark/challenges/verticals/code/2_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__": |