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

Method test_skip_broken_init_py

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

Source from the content-addressed store, hash-verified

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
5151
5152 step_dir = project_dir / ".specify" / "workflows" / "steps" / "broken-step"
5153 step_dir.mkdir(parents=True)
5154 (step_dir / "step.yml").write_text(
5155 "step:\n type_key: broken-step\n", encoding="utf-8"
5156 )
5157 (step_dir / "__init__.py").write_text(
5158 "raise RuntimeError('broken')", encoding="utf-8"
5159 )
5160
5161 # Should not propagate exception
5162 loaded = load_custom_steps(project_dir)
5163 assert "broken-step" not in loaded
5164
5165 def test_module_name_sanitized_for_hyphenated_type_key(self, project_dir):
5166 """type_key values with hyphens produce valid Python module identifiers."""

Callers

nothing calls this directly

Calls 1

load_custom_stepsFunction · 0.90

Tested by

no test coverage detected