File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,11 @@ 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-
132128@pytest .mark .parametrize (
133- "points , expected" ,
129+ "filename , expected" ,
134130 [
135131 [
136- "bbox_points_00" ,
132+ "bbox_points_00.json " ,
137133 [
138134 [- 16.324597659837302 , 17.160372549942966 , 3.56729 ],
139135 [- 16.324597659837302 , 17.160372549942966 , 2.45 ],
@@ -147,11 +143,12 @@ def bbox_points_00():
147143 ]
148144 ],
149145)
150- def test_oriented_bounding_box_numpy_from_fixtures (points , expected , request ):
146+ def test_oriented_bounding_box_numpy_from_fixtures (filename , expected ):
151147 if compas .IPY :
152148 return
153149
154- coords = request .getfixturevalue (points )
150+ coords = compas .json_load (os .path .join (HERE , "fixtures" , filename ))
151+
155152 from compas .geometry import oriented_bounding_box_numpy
156153
157154 results = oriented_bounding_box_numpy (coords )
You can’t perform that action at this time.
0 commit comments