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

Method test_duplicate_step_ids

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

Source from the content-addressed store, hash-verified

2517 assert any("no steps" in e.lower() for e in errors)
2518
2519 def test_duplicate_step_ids(self):
2520 from specify_cli.workflows.engine import WorkflowDefinition, validate_workflow
2521
2522 definition = WorkflowDefinition.from_string("""
2523workflow:
2524 id: "test"
2525 name: "Test"
2526 version: "1.0.0"
2527steps:
2528 - id: same-id
2529 command: speckit.specify
2530 - id: same-id
2531 command: speckit.plan
2532""")
2533 errors = validate_workflow(definition)
2534 assert any("Duplicate" in e for e in errors)
2535
2536 def test_invalid_step_type(self):
2537 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