MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_malformed_yaml

Function test_malformed_yaml

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

Source from the content-addressed store, hash-verified

109
110
111def test_malformed_yaml(tmp_path):
112 sd = _write_skill(tmp_path, "bad-yaml", frontmatter="name: : : bad\n - oops\n[")
113 result = validate_skill(sd)
114 assert not result.passed
115 assert any("YAML" in e or "yaml" in e for e in result.errors)
116
117
118def test_frontmatter_not_mapping(tmp_path):

Callers

nothing calls this directly

Calls 2

validate_skillFunction · 0.90
_write_skillFunction · 0.70

Tested by

no test coverage detected