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

Method test_execute_failure

tests/test_workflows.py:1167–1177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1165 assert "hello" in result.output["stdout"]
1166
1167 def test_execute_failure(self):
1168 from specify_cli.workflows.steps.shell import ShellStep
1169 from specify_cli.workflows.base import StepContext, StepStatus
1170
1171 step = ShellStep()
1172 ctx = StepContext()
1173 config = {"id": "test", "run": "exit 1"}
1174 result = step.execute(config, ctx)
1175 assert result.status == StepStatus.FAILED
1176 assert result.output["exit_code"] == 1
1177 assert result.error is not None
1178
1179 def test_validate_missing_run(self):
1180 from specify_cli.workflows.steps.shell import ShellStep

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
ShellStepClass · 0.90
StepContextClass · 0.90

Tested by

no test coverage detected