Remove trailing spaces throughout

This happens often in PRs so fixing this everywhere will make many PRs
mergeable as they won't include irrelevant whitespace fixes
This commit is contained in:
Andy Melnikov
2023-04-09 14:58:05 +02:00
parent f7d46e732a
commit 4a86da95f9
14 changed files with 105 additions and 105 deletions

View File

@@ -11,12 +11,12 @@ class TestParseJson(unittest.TestCase):
json_str = '{"name": "John", "age": 30, "city": "New York"}'
obj = fix_and_parse_json(json_str)
self.assertEqual(obj, {"name": "John", "age": 30, "city": "New York"})
def test_invalid_json_minor(self):
# Test that an invalid JSON string can be fixed with gpt
json_str = '{"name": "John", "age": 30, "city": "New York",}'
self.assertEqual(fix_and_parse_json(json_str, try_to_fix_with_gpt=False), {"name": "John", "age": 30, "city": "New York"})
def test_invalid_json_major_with_gpt(self):
# Test that an invalid JSON string raises an error when try_to_fix_with_gpt is False
json_str = 'BEGIN: "name": "John" - "age": 30 - "city": "New York" :END'
@@ -112,4 +112,4 @@ class TestParseJson(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
unittest.main()