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

Method test_skip_already_registered

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

Source from the content-addressed store, hash-verified

5132 assert "bad-symlinked-files" not in loaded
5133
5134 def test_skip_already_registered(self, project_dir):
5135 from specify_cli.workflows import load_custom_steps
5136
5137 # "command" is already registered as a built-in step
5138 step_dir = project_dir / ".specify" / "workflows" / "steps" / "command"
5139 step_dir.mkdir(parents=True)
5140 (step_dir / "step.yml").write_text(
5141 "step:\n type_key: command\n", encoding="utf-8"
5142 )
5143 (step_dir / "__init__.py").write_text("", encoding="utf-8")
5144
5145 # Should not raise KeyError; just skip
5146 loaded = load_custom_steps(project_dir)
5147 assert "command" not in loaded
5148
5149 def test_skip_broken_init_py(self, project_dir):
5150 from specify_cli.workflows import load_custom_steps

Callers

nothing calls this directly

Calls 1

load_custom_stepsFunction · 0.90

Tested by

no test coverage detected