(self)
| 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 |
nothing calls this directly
no test coverage detected