()
| 42 | |
| 43 | |
| 44 | def test_multipage_pagecount(): |
| 45 | with PdfPages(io.BytesIO()) as pdf: |
| 46 | assert pdf.get_pagecount() == 0 |
| 47 | fig, ax = plt.subplots() |
| 48 | ax.plot([1, 2, 3]) |
| 49 | fig.savefig(pdf, format="pdf") |
| 50 | assert pdf.get_pagecount() == 1 |
| 51 | pdf.savefig() |
| 52 | assert pdf.get_pagecount() == 2 |
| 53 | |
| 54 | |
| 55 | def test_multipage_properfinalize(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…