Coverage for tests/test_pdfutils.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-09 04:47 +0000

1#!/usr/bin/env python3 

2 

3from pdf_utils import parse_pdf 

4 

5 

6def test_parse_pdf() -> None: 

7 pdf_path = "tests/data/blank.pdf" 

8 text, images = parse_pdf(pdf_path) 

9 

10 assert text is not None 

11 assert text == [""] 

12 

13 assert images is not None 

14 assert len(images) == 1 

15 assert images[0].startswith("data:image/jpeg;base64,")