Create a safe skill directory for testing.
(tmp_path: Path)
| 33 | |
| 34 | @pytest.fixture |
| 35 | def safe_skill_dir(tmp_path: Path) -> Path: |
| 36 | """Create a safe skill directory for testing.""" |
| 37 | skill_md = tmp_path / "SKILL.md" |
| 38 | skill_md.write_text( |
| 39 | """--- |
| 40 | name: safe-skill |
| 41 | description: A completely safe skill |
| 42 | --- |
| 43 | |
| 44 | # Safe Skill |
| 45 | |
| 46 | ## Purpose |
| 47 | This skill helps with safe tasks. |
| 48 | |
| 49 | ## Usage |
| 50 | Just ask for help. |
| 51 | """, |
| 52 | encoding="utf-8", |
| 53 | ) |
| 54 | readme = tmp_path / "README.md" |
| 55 | readme.write_text("# Safe Skill\n\nA helpful skill.", encoding="utf-8") |
| 56 | return tmp_path |
| 57 | |
| 58 | |
| 59 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected