Merge pull request #1014 from drikusroor/fix-flake8-issues-pt-2

Fix flake8 issues pt. 2 (Add E231 & E302 flake8 rules)
This commit is contained in:
Richard Beales
2023-04-13 17:56:06 +01:00
committed by GitHub
24 changed files with 47 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ import tests.context
from scripts.json_parser import fix_and_parse_json
class TestParseJson(unittest.TestCase):
def test_valid_json(self):
# Test that a valid JSON string is parsed correctly
@@ -52,7 +53,7 @@ class TestParseJson(unittest.TestCase):
good_obj = {
"command": {
"name": "browse_website",
"args":{
"args": {
"url": "https://github.com/Torantulino/Auto-GPT"
}
},
@@ -91,7 +92,7 @@ class TestParseJson(unittest.TestCase):
good_obj = {
"command": {
"name": "browse_website",
"args":{
"args": {
"url": "https://github.com/Torantulino/Auto-GPT"
}
},