MCPcopy Index your code
hub / github.com/MiniMax-AI/Mini-Agent / test_load_valid_skill

Function test_load_valid_skill

tests/test_skill_loader.py:26–45  ·  view source on GitHub ↗

Test loading a valid skill

()

Source from the content-addressed store, hash-verified

24
25
26def test_load_valid_skill():
27 """Test loading a valid skill"""
28 with tempfile.TemporaryDirectory() as tmpdir:
29 skill_dir = Path(tmpdir) / "test-skill"
30 skill_dir.mkdir()
31
32 create_test_skill(
33 skill_dir,
34 "test-skill",
35 "A test skill",
36 "This is a test skill content.",
37 )
38
39 loader = SkillLoader(tmpdir)
40 skill = loader.load_skill(skill_dir / "SKILL.md")
41
42 assert skill is not None
43 assert skill.name == "test-skill"
44 assert skill.description == "A test skill"
45 assert "This is a test skill content" in skill.content
46
47
48def test_load_skill_with_metadata():

Callers

nothing calls this directly

Calls 3

load_skillMethod · 0.95
SkillLoaderClass · 0.90
create_test_skillFunction · 0.70

Tested by

no test coverage detected