fix: Fix flake8 errors based on the flake8 command with a narrower definition of errors

This commit is contained in:
Drikus Roor
2023-04-12 22:12:25 +02:00
parent 8d0d4135ea
commit 1f837968ff
12 changed files with 9 additions and 15 deletions

View File

@@ -66,8 +66,6 @@ class TestParseJson(unittest.TestCase):
# Assert that this raises an exception:
self.assertEqual(fix_and_parse_json(json_str, try_to_fix_with_gpt=False), good_obj)
def test_invalid_json_leading_sentence_with_gpt(self):
# Test that a REALLY invalid JSON string raises an error when try_to_fix_with_gpt is False
json_str = """I will first need to browse the repository (https://github.com/Torantulino/Auto-GPT) and identify any potential bugs that need fixing. I will use the "browse_website" command for this.
@@ -108,6 +106,5 @@ class TestParseJson(unittest.TestCase):
self.assertEqual(fix_and_parse_json(json_str, try_to_fix_with_gpt=False), good_obj)
if __name__ == '__main__':
unittest.main()