()
| 10 | |
| 11 | |
| 12 | def test_extract_image(): |
| 13 | doc = pymupdf.open(filename) |
| 14 | |
| 15 | image_count = 1 |
| 16 | for xref in range(1, doc.xref_length() - 1): |
| 17 | if doc.xref_get_key(xref, "Subtype")[1] != "/Image": |
| 18 | continue |
| 19 | img = doc.extract_image(xref) |
| 20 | if isinstance(img, dict): |
| 21 | image_count += 1 |
| 22 | |
| 23 | assert image_count == known_image_count # this number is know about the file |
| 24 | |
| 25 | def test_2348(): |
| 26 |
nothing calls this directly
no test coverage detected
searching dependent graphs…