MCPcopy
hub / github.com/github/spec-kit / test_add_and_get

Method test_add_and_get

tests/test_workflows.py:4606–4615  ·  view source on GitHub ↗
(self, project_dir)

Source from the content-addressed store, hash-verified

4604 """Test StepRegistry operations for custom step types."""
4605
4606 def test_add_and_get(self, project_dir):
4607 from specify_cli.workflows.catalog import StepRegistry
4608
4609 registry = StepRegistry(project_dir)
4610 registry.add("deploy", {"name": "Deploy", "version": "1.0.0", "type_key": "deploy"})
4611
4612 entry = registry.get("deploy")
4613 assert entry is not None
4614 assert entry["name"] == "Deploy"
4615 assert "installed_at" in entry
4616
4617 def test_add_does_not_mutate_input_metadata(self, project_dir):
4618 from specify_cli.workflows.catalog import StepRegistry

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
getMethod · 0.95
StepRegistryClass · 0.90

Tested by

no test coverage detected