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

Function test_few_slides_warning

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

Source from the content-addressed store, hash-verified

160
161
162def test_few_slides_warning(tmp_path: Path):
163 # 6 slides — passes hard floor (5), but warns (< 8).
164 html = (
165 "<html><body>"
166 '<section class="slide" data-type="cover"></section>'
167 '<section class="slide" data-type="thesis"></section>'
168 '<section class="slide" data-type="data"></section>'
169 '<section class="slide" data-type="thesis"></section>'
170 '<section class="slide" data-type="compare"></section>'
171 '<section class="slide" data-type="closing"></section>'
172 "</body></html>"
173 )
174 result = validate_deck(_write(tmp_path, html))
175 assert result.errors == []
176 assert any("slide count 6" in w for w in result.warnings)
177
178
179def test_run_of_3_same_type_warning(tmp_path: Path):

Callers

nothing calls this directly

Calls 2

validate_deckFunction · 0.90
_writeFunction · 0.85

Tested by

no test coverage detected