1717from plotpy .tools .curve import DownSamplingTool
1818
1919if TYPE_CHECKING :
20-
2120 from plotpy .items .curve .base import CurveItem
2221
2322
2423def test_free_select_point_tool ():
2524 """Test the free select point tool."""
2625 with qt_app_context (exec_loop = False ) as qapp :
2726 win , tool = create_window (SelectPointTool )
27+ win .show ()
2828 mouse_event_at_relative_plot_pos (
2929 win ,
3030 qapp ,
@@ -39,6 +39,7 @@ def test_contrained_select_point_tool():
3939 """Test the constrained select point tool contrained to a CurveItem."""
4040 with qt_app_context (exec_loop = False ) as qapp :
4141 win , tool = create_window (SelectPointTool )
42+ win .show ()
4243 tool .on_active_item = True
4344
4445 mouse_event_at_relative_plot_pos (
@@ -61,6 +62,7 @@ def test_select_points_tool():
6162 """Test the select points tool constrained to a CurveItem."""
6263 with qt_app_context (exec_loop = False ) as qapp :
6364 win , tool = create_window (tool_class = SelectPointsTool )
65+ win .show ()
6466 mod = QC .Qt .KeyboardModifier .ControlModifier
6567
6668 mouse_event_at_relative_plot_pos (win , qapp , (0.4 , 0.5 ), CLICK , mod )
@@ -93,6 +95,7 @@ def test_edit_point_tool():
9395 """Test the edit point tool for a CurveItem."""
9496 with qt_app_context (exec_loop = False ) as qapp :
9597 win , tool = create_window (EditPointTool )
98+ win .show ()
9699 curve_item : CurveItem = win .manager .get_plot ().get_active_item () # type: ignore
97100 orig_x , orig_y = curve_item .get_data ()
98101
0 commit comments