(self, project_dir)
| 2821 | assert state.step_results["gate"]["status"] == "paused" |
| 2822 | |
| 2823 | def test_execute_with_shell_step(self, project_dir): |
| 2824 | from specify_cli.workflows.engine import WorkflowEngine, WorkflowDefinition |
| 2825 | from specify_cli.workflows.base import RunStatus |
| 2826 | |
| 2827 | yaml_str = """ |
| 2828 | schema_version: "1.0" |
| 2829 | workflow: |
| 2830 | id: "shell-test" |
| 2831 | name: "Shell Test" |
| 2832 | version: "1.0.0" |
| 2833 | steps: |
| 2834 | - id: echo |
| 2835 | type: shell |
| 2836 | run: "echo workflow-output" |
| 2837 | """ |
| 2838 | definition = WorkflowDefinition.from_string(yaml_str) |
| 2839 | engine = WorkflowEngine(project_dir) |
| 2840 | state = engine.execute(definition) |
| 2841 | |
| 2842 | assert state.status == RunStatus.COMPLETED |
| 2843 | assert "workflow-output" in state.step_results["echo"]["output"]["stdout"] |
| 2844 | |
| 2845 | def test_execute_with_if_then(self, project_dir): |
| 2846 | from specify_cli.workflows.engine import WorkflowEngine, WorkflowDefinition |
nothing calls this directly
no test coverage detected