MCPcopy Index your code
hub / github.com/VectifyAI/OpenKB / test_description_too_long

Function test_description_too_long

tests/test_skill_validator.py:186–195  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

184
185
186def test_description_too_long(tmp_path):
187 long_desc = "x" * (DESCRIPTION_MAX_CHARS + 1)
188 sd = _write_skill(
189 tmp_path,
190 "long-desc",
191 frontmatter=f"name: long-desc\ndescription: {long_desc}",
192 )
193 result = validate_skill(sd)
194 assert not result.passed
195 assert any("description" in e and "chars" in e for e in result.errors)
196
197
198def test_description_too_short_is_warning_not_error(tmp_path):

Callers

nothing calls this directly

Calls 2

validate_skillFunction · 0.90
_write_skillFunction · 0.70

Tested by

no test coverage detected