(self)
| 1885 | assert result.output["condition"] == "{{ false }}" |
| 1886 | |
| 1887 | def test_execute_with_true_condition(self): |
| 1888 | from specify_cli.workflows.steps.do_while import DoWhileStep |
| 1889 | from specify_cli.workflows.base import StepContext |
| 1890 | |
| 1891 | step = DoWhileStep() |
| 1892 | ctx = StepContext() |
| 1893 | config = { |
| 1894 | "id": "cycle", |
| 1895 | "condition": "{{ true }}", |
| 1896 | "max_iterations": 5, |
| 1897 | "steps": [{"id": "work", "command": "speckit.plan"}], |
| 1898 | } |
| 1899 | result = step.execute(config, ctx) |
| 1900 | # Body always executes on first call regardless of condition |
| 1901 | assert len(result.next_steps) == 1 |
| 1902 | assert result.output["max_iterations"] == 5 |
| 1903 | |
| 1904 | def test_validate_rejects_bool_max_iterations(self): |
| 1905 | from specify_cli.workflows.steps.do_while import DoWhileStep |
nothing calls this directly
no test coverage detected