Skip to content

Commit 5f2409d

Browse files
committed
[TEST] Trying to fix las 2 tests in ci
1 parent cb0f328 commit 5f2409d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/test_model_types/test_subduction.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66

77
def test_subduction():
8-
data_path = os.path.abspath('../examples')
8+
# Get the directory containing the test file
9+
current_dir = os.path.dirname(os.path.abspath(__file__))
10+
# Navigate to examples directory relative to test location
11+
data_path = os.path.join(current_dir, '../..', 'examples')
912

1013
geo_model: gp.data.GeoModel = gp.create_geomodel(
1114
project_name='Onlap_relations',

test/test_modules/test_gempy_subsurface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def test_gempy_to_subsurface():
3636

3737
concatenated_id_array = np.concatenate(vertex_id_array)
3838
concatenated_cell_id_array = np.concatenate(cell_id_array)
39-
39+
40+
ss = optional_dependencies.require_subsurface()
4041
meshes: ss.UnstructuredData = ss.UnstructuredData.from_array(
4142
vertex=np.concatenate(vertex),
4243
cells=np.concatenate(simplex_list),

0 commit comments

Comments
 (0)