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

Function test_too_few_slides

tests/test_deck_validator.py:72–81  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

70
71
72def test_too_few_slides(tmp_path: Path):
73 html = (
74 "<html><body>"
75 + "".join(
76 f'<section class="slide" data-type="thesis"><h2>{i}</h2></section>' for i in range(4)
77 )
78 + "</body></html>"
79 )
80 result = validate_deck(_write(tmp_path, html))
81 assert any("at least 5" in e for e in result.errors)
82
83
84def test_missing_cover(tmp_path: Path):

Callers

nothing calls this directly

Calls 2

validate_deckFunction · 0.90
_writeFunction · 0.85

Tested by

no test coverage detected