(self, 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 |
| 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.""" |
nothing calls this directly
no test coverage detected