Invoke linetool with properties to increase coverage

This commit is contained in:
Stefan van der Walt
2014-09-29 22:28:42 +02:00
parent b4a6571715
commit 8a914e55f1
+2 -1
View File
@@ -79,7 +79,8 @@ def test_line_tool():
img = data.camera()
viewer = ImageViewer(img)
tool = LineTool(viewer, maxdist=10)
tool = LineTool(viewer, maxdist=10, line_props=dict(linewidth=3),
handle_props=dict(markersize=5))
tool.end_points = get_end_points(img)
assert_equal(tool.end_points, np.array([[170, 256], [341, 256]]))