(ax)
| 210 | |
| 211 | |
| 212 | def test_rectangle_add_state(ax): |
| 213 | tool = widgets.RectangleSelector(ax, interactive=True) |
| 214 | # Create rectangle |
| 215 | click_and_drag(tool, start=(70, 65), end=(125, 130)) |
| 216 | |
| 217 | with pytest.raises(ValueError): |
| 218 | tool.add_state('unsupported_state') |
| 219 | |
| 220 | with pytest.raises(ValueError): |
| 221 | tool.add_state('clear') |
| 222 | tool.add_state('move') |
| 223 | tool.add_state('square') |
| 224 | tool.add_state('center') |
| 225 | |
| 226 | |
| 227 | @pytest.mark.parametrize('add_state', [True, False]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…