(self, project_dir)
| 5100 | assert "bad-step" not in loaded |
| 5101 | |
| 5102 | def test_skip_missing_init_py(self, project_dir): |
| 5103 | from specify_cli.workflows import load_custom_steps |
| 5104 | |
| 5105 | step_dir = project_dir / ".specify" / "workflows" / "steps" / "bad-step2" |
| 5106 | step_dir.mkdir(parents=True) |
| 5107 | (step_dir / "step.yml").write_text( |
| 5108 | "step:\n type_key: bad-step2\n", encoding="utf-8" |
| 5109 | ) |
| 5110 | |
| 5111 | loaded = load_custom_steps(project_dir) |
| 5112 | assert "bad-step2" not in loaded |
| 5113 | |
| 5114 | @pytest.mark.skipif(not hasattr(os, "symlink"), reason="symlinks are unavailable") |
| 5115 | def test_skip_symlinked_step_files(self, project_dir): |
nothing calls this directly
no test coverage detected