MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / safe_skill_dir

Function safe_skill_dir

tests/conftest.py:35–56  ·  view source on GitHub ↗

Create a safe skill directory for testing.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

33
34@pytest.fixture
35def 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 """---
40name: safe-skill
41description: A completely safe skill
42---
43
44# Safe Skill
45
46## Purpose
47This skill helps with safe tasks.
48
49## Usage
50Just 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected