| 2432 | """Test WorkflowDefinition loading and parsing.""" |
| 2433 | |
| 2434 | def test_from_yaml(self, sample_workflow_file): |
| 2435 | from specify_cli.workflows.engine import WorkflowDefinition |
| 2436 | |
| 2437 | definition = WorkflowDefinition.from_yaml(sample_workflow_file) |
| 2438 | assert definition.id == "test-workflow" |
| 2439 | assert definition.name == "Test Workflow" |
| 2440 | assert definition.version == "1.0.0" |
| 2441 | assert len(definition.steps) == 2 |
| 2442 | |
| 2443 | def test_from_string(self, sample_workflow_yaml): |
| 2444 | from specify_cli.workflows.engine import WorkflowDefinition |