diff --git a/tests/unit/commands/validate/test_cli.py b/tests/unit/commands/validate/test_cli.py index ea2bdc10fc..f77a4711e9 100644 --- a/tests/unit/commands/validate/test_cli.py +++ b/tests/unit/commands/validate/test_cli.py @@ -93,8 +93,9 @@ def test_lint_template_passes(self, click_patch, lint_patch, read_sam_file_patch do_cli(ctx=ctx_lint_mock(debug=False, region="region"), template=template_path, lint=True) + @patch("cfnlint.api.lint") @patch("samcli.commands.validate.validate.click") - def test_lint_event_recorded(self, click_patch): + def test_lint_event_recorded(self, click_patch, lint_patch): template_path = "path_to_template" template_contents = "{}"