From 0912818025c4d5abd7e756b8172dd9d4e4032a1d Mon Sep 17 00:00:00 2001 From: Ivan Ogasawara Date: Thu, 28 Mar 2024 22:59:12 -0400 Subject: [PATCH] fix unittests --- src/makim/core.py | 4 ---- tests/smoke/.makim-unittest.yaml | 12 ++++++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/makim/core.py b/src/makim/core.py index 5a534bd..e73a671 100644 --- a/src/makim/core.py +++ b/src/makim/core.py @@ -338,9 +338,6 @@ def _load_shell_app(self) -> None: MakimError.MAKIM_CONFIG_FILE_INVALID, ) - print('=' * 80) - print(cmd_name, cmd_args, cmd_tmp_suffix) - self.shell_app = getattr(sh, cmd_name) self.shell_args = cmd_args self.tmp_suffix = cmd_tmp_suffix @@ -601,7 +598,6 @@ def load(self, file: str, dry_run: bool = False, verbose: bool = False): self._load_config_data() self._verify_config() - # self._load_shell_app() self.env = self._load_dotenv(self.global_data) def run(self, args: dict): diff --git a/tests/smoke/.makim-unittest.yaml b/tests/smoke/.makim-unittest.yaml index 619c608..239d3a1 100644 --- a/tests/smoke/.makim-unittest.yaml +++ b/tests/smoke/.makim-unittest.yaml @@ -28,7 +28,7 @@ groups: test-3-b: help: test-3-b dependencies: - - target: test-3-a + - target: tests.test-3-a run: assert True test-4-dep: @@ -48,7 +48,7 @@ groups: type: bool action: store_true dependencies: - - target: test-4-dep + - target: tests.test-4-dep if: ${{ args.trigger_dep }} args: arg1: ${{ args.trigger_dep }} @@ -66,7 +66,7 @@ groups: type: bool action: store_true dependencies: - - target: test-5-dep + - target: tests.test-5-dep if: ${{ args.trigger_dep }} run: assert True @@ -90,11 +90,11 @@ groups: type: bool action: store_true dependencies: - - target: test-6-dep-1 + - target: tests.test-6-dep-1 if: ${{ True }} - - target: test-6-dep-2 + - target: tests.test-6-dep-2 if: ${{ False }} - - target: test-6-dep-3 + - target: tests.test-6-dep-3 if: ${{ True }} run: | cat /tmp/makim-test.txt | grep "OK"