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

Method test_execute_always_runs_once

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

Source from the content-addressed store, hash-verified

1868 """Test the do-while loop step type."""
1869
1870 def test_execute_always_runs_once(self):
1871 from specify_cli.workflows.steps.do_while import DoWhileStep
1872 from specify_cli.workflows.base import StepContext
1873
1874 step = DoWhileStep()
1875 ctx = StepContext()
1876 config = {
1877 "id": "cycle",
1878 "condition": "{{ false }}",
1879 "max_iterations": 3,
1880 "steps": [{"id": "refine", "command": "speckit.specify"}],
1881 }
1882 result = step.execute(config, ctx)
1883 assert len(result.next_steps) == 1
1884 assert result.output["loop_type"] == "do-while"
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

Callers

nothing calls this directly

Calls 3

executeMethod · 0.95
DoWhileStepClass · 0.90
StepContextClass · 0.90

Tested by

no test coverage detected