Skip to content

Commit 8c3ab84

Browse files
committed
added reset check
1 parent 6b8f32f commit 8c3ab84

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

plotpy/tests/unit/test_point_tools.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ def test_edit_point_tool():
233233
new_x, new_y = curve_item.get_data()
234234
assert len(new_x) == len(orig_x) + 1 and len(new_y) == len(orig_y) + 1
235235

236+
tool.reset_arrays()
237+
assert tool.get_changes() == {}
238+
x_arr, y_arr = curve_item.get_data()
239+
assert np.in1d(x_arr, orig_x).all() and np.in1d(y_arr, orig_y).all()
240+
236241
exec_dialog(win)
237242

238243

0 commit comments

Comments
 (0)