Grammar-aware mode: missing required "cover" is an error.
(tmp_path: Path)
| 82 | |
| 83 | |
| 84 | def 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 | |
| 91 | def test_missing_cover_ignored_in_generic_mode(tmp_path: Path): |
nothing calls this directly
no test coverage detected