MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / write_test_pdf

Function write_test_pdf

tests/test_extract_evidence.py:24–34  ·  view source on GitHub ↗
(path: Path, pages: list[str])

Source from the content-addressed store, hash-verified

22
23
24def write_test_pdf(path: Path, pages: list[str]) -> None:
25 if fitz is None:
26 pytest.skip("PyMuPDF is required for PDF coverage integration tests.")
27 doc = fitz.open()
28 try:
29 for text in pages:
30 page = doc.new_page()
31 page.insert_text((72, 72), text)
32 doc.save(path)
33 finally:
34 doc.close()
35
36
37def test_extract_evidence_outputs_ablation_evidence(tmp_path: Path) -> None:

Calls 2

openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected