(tmp_path: Path)
| 70 | |
| 71 | |
| 72 | def 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 | |
| 84 | def test_missing_cover(tmp_path: Path): |
nothing calls this directly
no test coverage detected