MCPcopy Index your code
hub / github.com/github/spec-kit / test_from_yaml

Method test_from_yaml

tests/test_workflows.py:2434–2441  ·  view source on GitHub ↗
(self, sample_workflow_file)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

from_yamlMethod · 0.80

Tested by

no test coverage detected