Skip to content

Commit 16b9751

Browse files
committed
Revert "try to fix ipy failure"
This reverts commit 6701800.
1 parent 6701800 commit 16b9751

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/compas/geometry/test_bbox.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)