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

Function test_reference_too_big

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

Source from the content-addressed store, hash-verified

226
227
228def test_reference_too_big(tmp_path):
229 big = "y" * (REFERENCE_MAX_BYTES + 1)
230 sd = _write_skill(
231 tmp_path,
232 "big-ref",
233 refs={"huge.md": big},
234 )
235 result = validate_skill(sd)
236 assert not result.passed
237 assert any("huge.md" in e and "bytes" in e for e in result.errors)
238
239
240# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

validate_skillFunction · 0.90
_write_skillFunction · 0.70

Tested by

no test coverage detected