From 732c6a169f2bfa08e97ed4f793f1637915b7c0f7 Mon Sep 17 00:00:00 2001 From: clavedeluna Date: Tue, 17 Oct 2023 08:56:21 -0300 Subject: [PATCH] update unit test --- tests/test_codemodder.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_codemodder.py b/tests/test_codemodder.py index 2f8448c4..7e4515c2 100644 --- a/tests/test_codemodder.py +++ b/tests/test_codemodder.py @@ -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):