(self)
| 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 |
| 2521 | |
| 2522 | definition = WorkflowDefinition.from_string(""" |
| 2523 | workflow: |
| 2524 | id: "test" |
| 2525 | name: "Test" |
| 2526 | version: "1.0.0" |
| 2527 | steps: |
| 2528 | - id: same-id |
| 2529 | command: speckit.specify |
| 2530 | - id: same-id |
| 2531 | command: speckit.plan |
| 2532 | """) |
| 2533 | errors = validate_workflow(definition) |
| 2534 | assert any("Duplicate" in e for e in errors) |
| 2535 | |
| 2536 | def test_invalid_step_type(self): |
| 2537 | from specify_cli.workflows.engine import WorkflowDefinition, validate_workflow |
nothing calls this directly
no test coverage detected