From 860409ee3a7da28b59fe0ec035434a286b93e7c2 Mon Sep 17 00:00:00 2001 From: Daniel Mil Date: Wed, 31 Jul 2024 16:34:41 -0700 Subject: [PATCH] Fix unit test --- tests/unit/commands/validate/test_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = "{}"