(self)
| 2549 | assert any("invalid type" in e.lower() for e in errors) |
| 2550 | |
| 2551 | def test_nested_step_validation(self): |
| 2552 | from specify_cli.workflows.engine import WorkflowDefinition, validate_workflow |
| 2553 | |
| 2554 | definition = WorkflowDefinition.from_string(""" |
| 2555 | workflow: |
| 2556 | id: "test" |
| 2557 | name: "Test" |
| 2558 | version: "1.0.0" |
| 2559 | steps: |
| 2560 | - id: branch |
| 2561 | type: if |
| 2562 | condition: "{{ true }}" |
| 2563 | then: |
| 2564 | - id: nested-a |
| 2565 | command: speckit.specify |
| 2566 | else: |
| 2567 | - id: nested-b |
| 2568 | command: speckit.plan |
| 2569 | """) |
| 2570 | errors = validate_workflow(definition) |
| 2571 | assert errors == [] |
| 2572 | |
| 2573 | def test_invalid_input_type(self): |
| 2574 | from specify_cli.workflows.engine import WorkflowDefinition, validate_workflow |
nothing calls this directly
no test coverage detected