Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed Oct 17, 2023
1 parent 4320ede commit 732c6a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_codemodder.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ def test_reporting(self, mock_reporting, dry_run):
args_to_reporting = mock_reporting.call_args_list[0][0]
assert len(args_to_reporting) == 4
_, _, _, results_by_codemod = args_to_reporting
# assert len(results_by_codemod) == 2

for codemod_results in results_by_codemod:
assert len(codemod_results["changeset"]) > 0
registry = load_registered_codemods()
assert len(results_by_codemod) == len(registry.codemods)

@mock.patch("codemodder.codemods.base_codemod.semgrep_run")
def test_no_codemods_to_run(self, mock_semgrep_run):
Expand Down

0 comments on commit 732c6a1

Please sign in to comment.