Skip to content

Commit

Permalink
test --iwc on file
Browse files Browse the repository at this point in the history
  • Loading branch information
lldelisle committed Jul 1, 2024
1 parent 7bb3a50 commit db8f24c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_cmd_workflow_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,17 @@ def test_workflow_linting_iwc(self):
lint_cmd = ["workflow_lint", "--iwc", "--skip", "release", repo]
self._check_exit_code(lint_cmd, exit_code=0)

# Check the output of workflow_lint --iwc on a file raise an error
repo = _wf_repo("wf1.ga")
lint_cmd = ["workflow_lint", "--iwc", repo]
result = self._runner.invoke(self._cli.planemo, lint_cmd)

errors = [
"ValueError: iwc standards can only be checked on directories."
]

for error in errors:
assert error in result.output

def _wf_repo(rel_path):
return os.path.join(TEST_DATA_DIR, "wf_repos", rel_path)

0 comments on commit db8f24c

Please sign in to comment.