()
| 107 | |
| 108 | |
| 109 | def test_line(): |
| 110 | doc = pymupdf.open() |
| 111 | page = doc.new_page() |
| 112 | rect = page.rect + (100, 36, -100, -36) |
| 113 | cell = pymupdf.make_table(rect, rows=10) |
| 114 | for i in range(10): |
| 115 | annot = page.add_line_annot(cell[i][0].bl, cell[i][0].br) |
| 116 | annot.set_line_ends(i, i) |
| 117 | annot.update() |
| 118 | for i, annot in enumerate(page.annots()): |
| 119 | assert annot.line_ends == (i, i) |
| 120 | assert annot.type == (3, "Line") |
| 121 | |
| 122 | |
| 123 | def test_square(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…