MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / create_test_skill

Function create_test_skill

tests/test_skill_loader.py:13–23  ·  view source on GitHub ↗

Create a test skill

(skill_dir: Path, name: str, description: str, content: str)

Source from the content-addressed store, hash-verified

11
12
13def create_test_skill(skill_dir: Path, name: str, description: str, content: str):
14 """Create a test skill"""
15 skill_file = skill_dir / "SKILL.md"
16 skill_content = f"""---
17name: {name}
18description: {description}
19---
20
21{content}
22"""
23 skill_file.write_text(skill_content, encoding="utf-8")
24
25
26def test_load_valid_skill():

Callers 4

test_load_valid_skillFunction · 0.70
test_discover_skillsFunction · 0.70
test_get_skillFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected