Skip to content

Commit

Permalink
fix unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Mar 29, 2024
1 parent 9027ebb commit 0912818
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/makim/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down
12 changes: 6 additions & 6 deletions tests/smoke/.makim-unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand All @@ -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

Expand All @@ -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"
Expand Down

0 comments on commit 0912818

Please sign in to comment.