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

Method test_missing_id

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

Source from the content-addressed store, hash-verified

2475 assert errors == []
2476
2477 def test_missing_id(self):
2478 from specify_cli.workflows.engine import WorkflowDefinition, validate_workflow
2479
2480 definition = WorkflowDefinition.from_string("""
2481workflow:
2482 name: "Test"
2483 version: "1.0.0"
2484steps:
2485 - id: step-one
2486 command: speckit.specify
2487""")
2488 errors = validate_workflow(definition)
2489 assert any("workflow.id" in e for e in errors)
2490
2491 def test_invalid_id_format(self):
2492 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