Skip to content

Commit

Permalink
feat(test_workflow): add tests for pipeline workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Aug 1, 2023
1 parent c2cfc6f commit 5b03565
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/hyfi/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,33 @@ def test_cli_run_workflow() -> None:
assert exitcode == 0


def test_cli_run_workflow_pipelines() -> None:
"""Test cli command run_workflow"""
command = [
"poetry",
"run",
"hyfi",
"cmd=run_workflow",
"workflow=__test_pipelines__",
]
out, err, exitcode = capture(command)
assert exitcode == 0


def test_workflow() -> None:
"""Test workflow"""
wf = HyFI.workflow(_config_name_="__test__")
HyFI.print(wf.model_dump())
HyFI.run_workflow(wf)


def test_workflow_pipelines() -> None:
"""Test workflow"""
wf = HyFI.workflow(_config_name_="__test_pipelines__")
HyFI.print(wf.model_dump())
HyFI.run_workflow(wf)


if __name__ == "__main__":
test_workflow()
test_workflow_pipelines()

0 comments on commit 5b03565

Please sign in to comment.