Skip to content

Commit 825cb69

Browse files
committed
updated test point tools
1 parent be1f854 commit 825cb69

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

plotpy/tests/unit/test_point_tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
from plotpy.tools.curve import DownSamplingTool
1818

1919
if TYPE_CHECKING:
20-
2120
from plotpy.items.curve.base import CurveItem
2221

2322

2423
def 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

Comments
 (0)