(ax, kwargs)
| 998 | dict(useblit=True, button=1), |
| 999 | ]) |
| 1000 | def test_lasso_selector(ax, kwargs): |
| 1001 | onselect = mock.Mock(spec=noop, return_value=None) |
| 1002 | |
| 1003 | tool = widgets.LassoSelector(ax, onselect=onselect, **kwargs) |
| 1004 | MouseEvent._from_ax_coords("button_press_event", ax, (100, 100), 1)._process() |
| 1005 | MouseEvent._from_ax_coords("motion_notify_event", ax, (125, 125), 1)._process() |
| 1006 | MouseEvent._from_ax_coords("button_release_event", ax, (150, 150), 1)._process() |
| 1007 | |
| 1008 | onselect.assert_called_once_with([(100, 100), (125, 125), (150, 150)]) |
| 1009 | |
| 1010 | |
| 1011 | def test_lasso_selector_set_props(ax): |
nothing calls this directly
no test coverage detected
searching dependent graphs…