MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / test_4319

Function test_4319

tests/test_general.py:1843–1856  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1841 print(f'Have created: {path_pixmap}')
1842
1843def test_4319():
1844 # Have not seen this test reproduce issue #4319, but keeping it anyway.
1845 path = os.path.normpath(f'{__file__}/../../tests/resources/test_4319.pdf')
1846 doc = pymupdf.open()
1847 page = doc.new_page()
1848 page.insert_text((10, 100), "some text")
1849 doc.save(path)
1850 doc.close()
1851 doc = pymupdf.open(path)
1852 page = doc[0]
1853 pc = doc.page_count
1854 doc.close()
1855 os.remove(path)
1856 print(f"removed {doc.name=}")
1857
1858def test_3886():
1859 path = os.path.normpath(f'{__file__}/../../tests/resources/test_3886.pdf')

Callers

nothing calls this directly

Calls 5

new_pageMethod · 0.80
removeMethod · 0.80
insert_textMethod · 0.45
saveMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…