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