()
| 105 | |
| 106 | |
| 107 | def test_customcell(): |
| 108 | types = ('horizontal', 'vertical', 'open', 'closed', 'T', 'R', 'B', 'L') |
| 109 | codes = ( |
| 110 | (Path.MOVETO, Path.LINETO, Path.MOVETO, Path.LINETO, Path.MOVETO), |
| 111 | (Path.MOVETO, Path.MOVETO, Path.LINETO, Path.MOVETO, Path.LINETO), |
| 112 | (Path.MOVETO, Path.MOVETO, Path.MOVETO, Path.MOVETO, Path.MOVETO), |
| 113 | (Path.MOVETO, Path.LINETO, Path.LINETO, Path.LINETO, Path.CLOSEPOLY), |
| 114 | (Path.MOVETO, Path.MOVETO, Path.MOVETO, Path.LINETO, Path.MOVETO), |
| 115 | (Path.MOVETO, Path.MOVETO, Path.LINETO, Path.MOVETO, Path.MOVETO), |
| 116 | (Path.MOVETO, Path.LINETO, Path.MOVETO, Path.MOVETO, Path.MOVETO), |
| 117 | (Path.MOVETO, Path.MOVETO, Path.MOVETO, Path.MOVETO, Path.LINETO), |
| 118 | ) |
| 119 | |
| 120 | for t, c in zip(types, codes): |
| 121 | cell = CustomCell((0, 0), visible_edges=t, width=1, height=1) |
| 122 | code = tuple(s for _, s in cell.get_path().iter_segments()) |
| 123 | assert c == code |
| 124 | |
| 125 | |
| 126 | @image_comparison(['table_auto_column.png'], style='mpl20') |
nothing calls this directly
no test coverage detected
searching dependent graphs…