(self)
| 1153 | return f'"{sys.executable}" "{script}"' |
| 1154 | |
| 1155 | def test_execute_echo(self): |
| 1156 | from specify_cli.workflows.steps.shell import ShellStep |
| 1157 | from specify_cli.workflows.base import StepContext, StepStatus |
| 1158 | |
| 1159 | step = ShellStep() |
| 1160 | ctx = StepContext() |
| 1161 | config = {"id": "test", "run": "echo hello"} |
| 1162 | result = step.execute(config, ctx) |
| 1163 | assert result.status == StepStatus.COMPLETED |
| 1164 | assert result.output["exit_code"] == 0 |
| 1165 | assert "hello" in result.output["stdout"] |
| 1166 | |
| 1167 | def test_execute_failure(self): |
| 1168 | from specify_cli.workflows.steps.shell import ShellStep |
nothing calls this directly
no test coverage detected