Skip to content

Commit 1bc1dcd

Browse files
adjust bounding box test for IronPython
1 parent bf16603 commit 1bc1dcd

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

tests/compas/datastructures/test_mesh.py

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,26 +1287,20 @@ def test_face_attributes_includes_all_defaults(box):
12871287
# bounding volumes
12881288
# --------------------------------------------------------------------------
12891289

1290+
if not compas.IPY:
12901291

1291-
def test_compute_aabb():
1292-
if compas.IPY:
1293-
pytest.skip("Skipping test under IronPython.")
1292+
def test_compute_aabb():
1293+
mesh = Mesh.from_obj(compas.get("tubemesh.obj"))
1294+
aabb = mesh.compute_aabb()
12941295

1295-
mesh = Mesh.from_obj(compas.get("tubemesh.obj"))
1296-
aabb = mesh.compute_aabb()
1296+
assert isinstance(aabb, Box)
1297+
assert len(aabb.points) == 8
1298+
assert aabb.contains_points(mesh.to_points())
12971299

1298-
assert isinstance(aabb, Box)
1299-
assert len(aabb.points) == 8
1300-
assert aabb.contains_points(mesh.to_points())
1300+
def test_compute_obb():
1301+
mesh = Mesh.from_obj(compas.get("tubemesh.obj"))
1302+
obb = mesh.compute_obb()
13011303

1302-
1303-
def test_compute_obb():
1304-
if compas.IPY:
1305-
pytest.skip("Skipping test under IronPython.")
1306-
1307-
mesh = Mesh.from_obj(compas.get("tubemesh.obj"))
1308-
obb = mesh.compute_obb()
1309-
1310-
assert isinstance(obb, Box)
1311-
assert len(obb.points) == 8
1312-
assert obb.contains_points(mesh.to_points())
1304+
assert isinstance(obb, Box)
1305+
assert len(obb.points) == 8
1306+
assert obb.contains_points(mesh.to_points())

0 commit comments

Comments
 (0)