File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -125,11 +125,15 @@ def test_oriented_bounding_box_numpy(coords, expected):
125125 assert TOL .is_allclose (result , expected_values )
126126
127127
128+ @pytest .fixture
129+ def bbox_points_00 ():
130+ return compas .json_load (os .path .join (HERE , "fixtures" , "bbox_points_00.json" ))
131+
128132@pytest .mark .parametrize (
129- "filename , expected" ,
133+ "points , expected" ,
130134 [
131135 [
132- "bbox_points_00.json " ,
136+ "bbox_points_00" ,
133137 [
134138 [- 16.324597659837302 , 17.160372549942966 , 3.56729 ],
135139 [- 16.324597659837302 , 17.160372549942966 , 2.45 ],
@@ -143,12 +147,11 @@ def test_oriented_bounding_box_numpy(coords, expected):
143147 ]
144148 ],
145149)
146- def test_oriented_bounding_box_numpy_from_fixtures (filename , expected ):
150+ def test_oriented_bounding_box_numpy_from_fixtures (points , expected , request ):
147151 if compas .IPY :
148152 return
149153
150- coords = compas .json_load (os .path .join (HERE , "fixtures" , filename ))
151-
154+ coords = request .getfixturevalue (points )
152155 from compas .geometry import oriented_bounding_box_numpy
153156
154157 results = oriented_bounding_box_numpy (coords )
You can’t perform that action at this time.
0 commit comments