@@ -99,7 +99,7 @@ def test_create_line_from_vectors(ini, end):
9999    ([0 , 0 , 0 ], [[0 , 0 , 0 ], [0 , 0 , 1 ]], 1 , 1 , 20 , 20 ),
100100    ([0 , 0 , 0 ], [0 , 0 , 1 ], 1 , 1 , 20 , 20 ),
101101    ([1 , 1 , 1 ], [1 , - 1 , 0 ], 1 , 1 , 20 , 20 ),
102-     ([0 , 0 , 0 ], Line ([[0 , 0 , 0 ], [0 , 0 , 1 ]]), 1 , 1 , 20 , 20 ),
102+     ([0 , 0 , 0 ], lambda :  Line ([[0 , 0 , 0 ], [0 , 0 , 1 ]]), 1 , 1 , 20 , 20 ),
103103    pytest .param (
104104        [0 , 0 ],
105105        [0 , 0 , 1 ],
@@ -140,11 +140,12 @@ def test_create_line_from_vectors(ini, end):
140140
141141
142142@pytest .mark .parametrize ( 
143-     ("center" , "normal " , "width" , "height" , "n_cells_x" , "n_cells_y" ), planes_data  
143+     ("center" , "normal_arg " , "width" , "height" , "n_cells_x" , "n_cells_y" ), planes_data  
144144) 
145145def  test_create_plane_from_center_and_normal (
146-     center , normal , width , height , n_cells_x , n_cells_y 
146+     center , normal_arg , width , height , n_cells_x , n_cells_y 
147147):
148+     normal  =  normal_arg () if  callable (normal_arg ) else  normal_arg 
148149    plane  =  create_plane_from_center_and_normal (
149150        center , normal , width , height , n_cells_x , n_cells_y 
150151    )
@@ -169,7 +170,7 @@ def test_create_plane_from_center_and_normal(
169170        [[0 , 0 , 0 ], [0 , 1 , 0 ]], marks = pytest .mark .xfail (strict = True , raises = ValueError )
170171    ),
171172    pytest .param (
172-         Points ([[0 , 0 , 0 ], [0 , 1 , 0 ]]),
173+         lambda :  Points ([[0 , 0 , 0 ], [0 , 1 , 0 ]]),
173174        marks = pytest .mark .xfail (strict = True , raises = ValueError ),
174175    ),
175176    pytest .param (
@@ -214,7 +215,7 @@ def test_create_plane_from_lines(line1, line2):
214215    (lambda : Points ([0 , 0 , 0 ]), [[0 , 0 , 0 ], [0 , 0 , 1 ]]),
215216    ([0 , 0 , 0 ], lambda : Line ([[0 , 0 , 0 ], [0 , 0 , 1 ]])),
216217    pytest .param (
217-         Points ([[0 , 0 , 0 ], [1 , 1 , 1 ]]),
218+         lambda :  Points ([[0 , 0 , 0 ], [1 , 1 , 1 ]]),
218219        [[0 , 0 , 0 ], [0 , 0 , 1 ]],
219220        marks = pytest .mark .xfail (strict = True , raises = ValueError ),
220221    ),
0 commit comments