MCPcopy Index your code
hub / github.com/github/spec-kit / test_execute_with_shell_step

Method test_execute_with_shell_step

tests/test_workflows.py:2823–2843  ·  view source on GitHub ↗
(self, project_dir)

Source from the content-addressed store, hash-verified

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 = """
2828schema_version: "1.0"
2829workflow:
2830 id: "shell-test"
2831 name: "Shell Test"
2832 version: "1.0.0"
2833steps:
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

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
WorkflowEngineClass · 0.90
from_stringMethod · 0.80

Tested by

no test coverage detected