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

Function test_discover_skills

tests/test_skill_loader.py:97–112  ·  view source on GitHub ↗

Test discovering multiple skills

()

Source from the content-addressed store, hash-verified

95
96
97def test_discover_skills():
98 """Test discovering multiple skills"""
99 with tempfile.TemporaryDirectory() as tmpdir:
100 # Create multiple skills
101 for i in range(3):
102 skill_dir = Path(tmpdir) / f"skill-{i}"
103 skill_dir.mkdir()
104 create_test_skill(
105 skill_dir, f"skill-{i}", f"Test skill {i}", f"Content {i}"
106 )
107
108 loader = SkillLoader(tmpdir)
109 skills = loader.discover_skills()
110
111 assert len(skills) == 3
112 assert len(loader.list_skills()) == 3
113
114
115def test_get_skill():

Callers

nothing calls this directly

Calls 4

discover_skillsMethod · 0.95
list_skillsMethod · 0.95
SkillLoaderClass · 0.90
create_test_skillFunction · 0.70

Tested by

no test coverage detected