(self)
| 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(""" |
| 2495 | workflow: |
| 2496 | id: "Invalid ID!" |
| 2497 | name: "Test" |
| 2498 | version: "1.0.0" |
| 2499 | steps: |
| 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 |
nothing calls this directly
no test coverage detected