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

Function test_missing_cover

tests/test_deck_validator.py:84–88  ·  view source on GitHub ↗

Grammar-aware mode: missing required "cover" is an error.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

82
83
84def test_missing_cover(tmp_path: Path):
85 """Grammar-aware mode: missing required "cover" is an error."""
86 html = GOOD_DECK.replace('data-type="cover"', 'data-type="thesis"')
87 result = validate_deck(_write(tmp_path, html), grammar=EDITORIAL_MONOCLE_GRAMMAR)
88 assert any('"cover"' in e for e in result.errors)
89
90
91def test_missing_cover_ignored_in_generic_mode(tmp_path: Path):

Callers

nothing calls this directly

Calls 2

validate_deckFunction · 0.90
_writeFunction · 0.85

Tested by

no test coverage detected