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

Method test_execute_with_true_condition

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
DoWhileStepClass · 0.90
StepContextClass · 0.90

Tested by

no test coverage detected