(ax, idx, draw_bounding_box)
| 1600 | @pytest.mark.parametrize('idx', [1, 2, 3]) |
| 1601 | @pytest.mark.parametrize('draw_bounding_box', [False, True]) |
| 1602 | def test_polygon_selector_remove(ax, idx, draw_bounding_box): |
| 1603 | verts = [(50, 50), (150, 50), (50, 150)] |
| 1604 | event_sequence = [polygon_place_vertex(ax, verts[0]), |
| 1605 | polygon_place_vertex(ax, verts[1]), |
| 1606 | polygon_place_vertex(ax, verts[2]), |
| 1607 | # Finish the polygon |
| 1608 | polygon_place_vertex(ax, verts[0])] |
| 1609 | # Add an extra point |
| 1610 | event_sequence.insert(idx, polygon_place_vertex(ax, (200, 200))) |
| 1611 | # Remove the extra point |
| 1612 | event_sequence.append(polygon_remove_vertex(ax, (200, 200))) |
| 1613 | # Flatten list of lists |
| 1614 | event_sequence = functools.reduce(operator.iadd, event_sequence, []) |
| 1615 | check_polygon_selector(event_sequence, verts, 2, |
| 1616 | draw_bounding_box=draw_bounding_box) |
| 1617 | |
| 1618 | |
| 1619 | @pytest.mark.parametrize('draw_bounding_box', [False, True]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…