(self)
| 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(""" |
| 2481 | workflow: |
| 2482 | name: "Test" |
| 2483 | version: "1.0.0" |
| 2484 | steps: |
| 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 |
nothing calls this directly
no test coverage detected