(tmp_path: Path, text: str)
| 17 | |
| 18 | |
| 19 | def _create_pdf(tmp_path: Path, text: str) -> str: |
| 20 | pdf_path = tmp_path / "sample.pdf" |
| 21 | doc = fitz.open() |
| 22 | page = doc.new_page() |
| 23 | page.insert_textbox(fitz.Rect(48, 48, 560, 780), text, fontsize=12) |
| 24 | doc.save(pdf_path) |
| 25 | doc.close() |
| 26 | return str(pdf_path) |
| 27 | |
| 28 | |
| 29 | def test_extract_metadata_ignores_numbered_heading_as_authors(): |
no test coverage detected