Skip to content

Commit

Permalink
test: mark tests requiring optional dependencies (#2409)
Browse files Browse the repository at this point in the history
This should fix the failing optional dependency CI tests. There are still failures afflicting the main CI tests, to be fixed shortly.
  • Loading branch information
wpbonelli authored Jan 9, 2025
1 parent bb587c3 commit a80c49d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions autotest/test_mf6.py
Original file line number Diff line number Diff line change
Expand Up @@ -2332,6 +2332,8 @@ def test_remove_model(function_tmpdir, example_data_path):
break


@requires_pkg("shapely")
@requires_exe("triangle")
def test_flopy_2283(function_tmpdir):
# create triangular grid
triangle_ws = function_tmpdir / "triangle"
Expand Down
6 changes: 3 additions & 3 deletions autotest/test_model_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def test_model_with_lak_sfr_mvr(function_tmpdir):
np.testing.assert_allclose(new_heads, original_heads, err_msg=err_msg)


@requires_pkg("pymetis")
@requires_exe("mf6")
@requires_pkg("pymetis")
@pytest.mark.slow
def test_metis_splitting_with_lak_sfr(function_tmpdir):
sim_path = get_example_data_path() / "mf6" / "test045_lake2tr"
Expand Down Expand Up @@ -848,8 +848,7 @@ def test_unstructured_complex_disu(function_tmpdir):


@requires_exe("mf6")
@requires_pkg("pymetis")
@requires_pkg("scipy")
@requires_pkg("pymetis", "scipy")
def test_multi_model(function_tmpdir):
from scipy.spatial import KDTree

Expand Down Expand Up @@ -1301,6 +1300,7 @@ def build_gwt_model(sim, gwtname, rch_package):


@requires_exe("mf6")
@requires_pkg("pymetis")
def test_timeseries(function_tmpdir):
sim = MFSimulation(
sim_name="np001",
Expand Down
1 change: 1 addition & 0 deletions autotest/test_plot_cross_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def test_plot_limits():
plt.close(fig)


@requires_pkg("shapely")
def test_plot_centers():
from matplotlib.collections import PathCollection

Expand Down
1 change: 1 addition & 0 deletions autotest/test_plot_map_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def test_plot_limits():
plt.close(fig)


@requires_pkg("shapely")
def test_plot_centers():
nlay = 1
nrow = 10
Expand Down

0 comments on commit a80c49d

Please sign in to comment.