Skip to content

Commit 8182427

Browse files
committed
renaming
1 parent 079b3d0 commit 8182427

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

plotpy/tests/unit/test_select_point_tools.py renamed to plotpy/tests/unit/test_point_tools.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def create_window(tool_class: type[ToolT]) -> tuple[PlotWindow, ToolT]:
106106
return win, tool
107107

108108

109-
def test_select_point_tool_1():
109+
def test_free_select_point_tool():
110110
with qt_app_context(exec_loop=False) as qapp:
111111
win, tool = create_window(SelectPointTool)
112112

@@ -120,7 +120,7 @@ def test_select_point_tool_1():
120120
exec_dialog(win)
121121

122122

123-
def test_select_point_tool_2():
123+
def test_contrained_select_point_tool():
124124
with qt_app_context(exec_loop=False) as qapp:
125125
win, tool = create_window(SelectPointTool)
126126
tool.on_active_item = True
@@ -179,11 +179,14 @@ def test_edit_point_tool():
179179
x_arr, y_arr = curve_item.get_data()
180180
assert x == x_arr[i]
181181
assert y == y_arr[i]
182+
183+
tool.get_arrays()
184+
tool.get_initial_arrays()
182185
exec_dialog(win)
183186

184187

185188
if __name__ == "__main__":
186-
test_select_point_tool_1()
187-
test_select_point_tool_2()
189+
test_free_select_point_tool()
190+
test_contrained_select_point_tool()
188191
test_select_points_tool()
189192
test_edit_point_tool()

0 commit comments

Comments
 (0)