Skip to content

Commit 0245909

Browse files
committed
tests: skip geoh5 test when geoh5py not installed
1 parent c621c0b commit 0245909

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/unit/io/test_geoh5.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
from LoopStructural.export.geoh5 import add_group_to_geoh5, add_points_to_geoh5, add_points_from_df
2-
import geoh5py
31
import pytest
2+
geoh5py = pytest.importorskip("geoh5py")
3+
from LoopStructural.export.geoh5 import add_group_to_geoh5, add_points_to_geoh5, add_points_from_df
4+
45
from pathlib import Path
56
from LoopStructural.datatypes import ValuePoints, VectorPoints
67
import numpy as np
8+
79
@pytest.fixture
810
def tmp_path():
911
import tempfile

0 commit comments

Comments
 (0)