(tmp_path: Path)
| 160 | |
| 161 | |
| 162 | def 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 | |
| 179 | def test_run_of_3_same_type_warning(tmp_path: Path): |
nothing calls this directly
no test coverage detected