MCPcopy
hub / github.com/agentskills/agentskills / test_missing_name

Function test_missing_name

skills-ref/tests/test_parser.py:104–113  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

102
103
104def test_missing_name(tmp_path):
105 skill_dir = tmp_path / "my-skill"
106 skill_dir.mkdir()
107 (skill_dir / "SKILL.md").write_text("""---
108description: A test skill
109---
110Body
111""")
112 with pytest.raises(ValidationError, match="Missing required field.*name"):
113 read_properties(skill_dir)
114
115
116def test_missing_description(tmp_path):

Callers

nothing calls this directly

Calls 1

read_propertiesFunction · 0.90

Tested by

no test coverage detected