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

Method test_nested_step_validation

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

Source from the content-addressed store, hash-verified

2549 assert any("invalid type" in e.lower() for e in errors)
2550
2551 def test_nested_step_validation(self):
2552 from specify_cli.workflows.engine import WorkflowDefinition, validate_workflow
2553
2554 definition = WorkflowDefinition.from_string("""
2555workflow:
2556 id: "test"
2557 name: "Test"
2558 version: "1.0.0"
2559steps:
2560 - id: branch
2561 type: if
2562 condition: "{{ true }}"
2563 then:
2564 - id: nested-a
2565 command: speckit.specify
2566 else:
2567 - id: nested-b
2568 command: speckit.plan
2569""")
2570 errors = validate_workflow(definition)
2571 assert errors == []
2572
2573 def test_invalid_input_type(self):
2574 from specify_cli.workflows.engine import WorkflowDefinition, validate_workflow

Callers

nothing calls this directly

Calls 2

validate_workflowFunction · 0.90
from_stringMethod · 0.80

Tested by

no test coverage detected