Skip to content

Commit 97aef4b

Browse files
committed
added skip if
1 parent f87d3d8 commit 97aef4b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gridData/tests/test_vdb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def grid345():
2424
return data, g
2525

2626

27+
@pytest.mark.skipif(not HAS_OPENVDB, reason="openvdb not installed")
2728
class TestVDBWrite:
2829
def test_write_vdb_from_grid(self, tmpdir, grid345):
2930
data, g = grid345
@@ -247,6 +248,7 @@ def test_delta_1d_wrong_length_raises(self):
247248
gridData.OpenVDB.OpenVDBField(data, origin, bad_delta)
248249

249250

251+
@pytest.mark.skipif(not HAS_OPENVDB, reason="Need openvdb to test import error handling")
250252
def test_vdb_import_error():
251253
with patch("gridData.OpenVDB.vdb", None):
252254
with pytest.raises(ImportError, match="openvdb is required"):

0 commit comments

Comments
 (0)