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

Method test_invalid_id_format

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

Source from the content-addressed store, hash-verified

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
2493
2494 definition = WorkflowDefinition.from_string("""
2495workflow:
2496 id: "Invalid ID!"
2497 name: "Test"
2498 version: "1.0.0"
2499steps:
2500 - id: step-one
2501 command: speckit.specify
2502""")
2503 errors = validate_workflow(definition)
2504 assert any("lowercase alphanumeric" in e for e in errors)
2505
2506 def test_no_steps(self):
2507 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