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

Method test_no_steps

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

Source from the content-addressed store, hash-verified

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
2508
2509 definition = WorkflowDefinition.from_string("""
2510workflow:
2511 id: "test"
2512 name: "Test"
2513 version: "1.0.0"
2514steps: []
2515""")
2516 errors = validate_workflow(definition)
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

Callers

nothing calls this directly

Calls 2

validate_workflowFunction · 0.90
from_stringMethod · 0.80

Tested by

no test coverage detected