(tmpdir)
| 75 | |
| 76 | |
| 77 | def test_save(tmpdir): |
| 78 | # pixmaps from file then save to image |
| 79 | # make pixmap from this and confirm equality |
| 80 | pix1 = pymupdf.Pixmap(imgfile) |
| 81 | outfile = os.path.join(tmpdir, "foo.png") |
| 82 | pix1.save(outfile, output="png") |
| 83 | # read it back |
| 84 | pix2 = pymupdf.Pixmap(outfile) |
| 85 | assert repr(pix1) == repr(pix2) |
| 86 | |
| 87 | |
| 88 | def test_setalpha(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…