@@ -99,9 +99,11 @@ def _assert_run_fields(self, run, output_path):
9999 assert run [
100100 "commandLine"
101101 ] == f'codemodder { self .code_dir } --output { output_path } --codemod-include={ self .codemod_instance .id } --path-include={ self .code_filename } --path-exclude=""' + (
102- f" --sonar-json={ self .sonar_issues_json } " if self .sonar_issues_json else ""
102+ f" --sonar-issues-json={ self .sonar_issues_json } "
103+ if self .sonar_issues_json
104+ else ""
103105 ) + (
104- f" --sonar-json={ self .sonar_hotspots_json } "
106+ f" --sonar-hotspots- json={ self .sonar_hotspots_json } "
105107 if self .sonar_hotspots_json
106108 else ""
107109 )
@@ -140,7 +142,6 @@ def _assert_results_fields(self, results, output_path):
140142 change = [
141143 result for result in result ["changeset" ] if result ["path" ] == output_path
142144 ][0 ]
143- print (change ["diff" ])
144145 assert change ["path" ] == output_path
145146 assert change ["diff" ] == self .expected_diff
146147
@@ -196,9 +197,9 @@ def test_file_rewritten(self, codetf_schema):
196197 ]
197198
198199 if self .sonar_issues_json :
199- command .append (f"--sonar-json={ self .sonar_issues_json } " )
200+ command .append (f"--sonar-issues- json={ self .sonar_issues_json } " )
200201 if self .sonar_hotspots_json :
201- command .append (f"--sonar-json={ self .sonar_hotspots_json } " )
202+ command .append (f"--sonar-hotspots- json={ self .sonar_hotspots_json } " )
202203
203204 self .write_original_code ()
204205 self .write_original_dependencies ()
0 commit comments