@@ -12,7 +12,7 @@ class TestCommands:
1212
1313 @pytest .mark .parametrize ('name1, name2, expected_in_stdout, expected_exit_code' , [
1414 ('t1.json' , 't2.json' , """dictionary_item_added": [\n "root[0][\' key3\' ]""" , 0 ),
15- ('t1_corrupt.json' , 't2.json' , "Error when loading t1: Illegal trailing comma before end of object: line 3 column 21 (char 45) \n " , 1 ),
15+ ('t1_corrupt.json' , 't2.json' , "Error when loading t1:" , 1 ),
1616 ('t1.json' , 't2_json.csv' , '"old_value": "value2"' , 0 ),
1717 ('t2_json.csv' , 't1.json' , '"old_value": "value3"' , 0 ),
1818 ('t1.csv' , 't2.csv' , '"new_value": "James"' , 0 ),
@@ -23,6 +23,7 @@ class TestCommands:
2323 def test_diff_command (self , name1 , name2 , expected_in_stdout , expected_exit_code ):
2424 t1 = os .path .join (FIXTURES_DIR , name1 )
2525 t2 = os .path .join (FIXTURES_DIR , name2 )
26+
2627 runner = CliRunner ()
2728 result = runner .invoke (diff , [t1 , t2 ])
2829 assert result .exit_code == expected_exit_code , f"test_diff_command failed for { name1 } , { name2 } "
0 commit comments