Skip to content

Commit 7224387

Browse files
committed
fix test_annotation_tools
1 parent 25615bb commit 7224387

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plotpy/tests/unit/test_annotation_tools.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@
3636

3737
if TYPE_CHECKING:
3838
from plotpy.plot.plotwidget import PlotWindow
39-
from plotpy.tools.base import RectangularActionTool
4039

41-
from plotpy.tests.unit.utils import drag_mouse, keyboard_event, undo_redo
40+
from plotpy.tests.unit.utils import drag_mouse, undo_redo
4241

4342
P0 = QC.QPointF(10, 10)
4443
P1 = QC.QPointF(100, 100)
@@ -119,7 +118,7 @@ def _test_annotation_tools(tool_classes: tuple[type[InteractiveTool], ...]):
119118

120119
drag_mouse(win, qapp, np.linspace(0.2, 0.5, 10), np.linspace(0.2, 0.5, 10))
121120

122-
undo_redo(win, qapp)
121+
undo_redo(qapp, win)
123122

124123
exec_dialog(win)
125124

0 commit comments

Comments
 (0)