Skip to content

Commit

Permalink
refactor(xmipy): skip test_gwf_tdis if xmipy not installed (MODFLOW-U…
Browse files Browse the repository at this point in the history
  • Loading branch information
langevin-usgs authored Aug 21, 2024
1 parent 626c236 commit 6f22a9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autotest/test_gwf_tdis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import flopy
import numpy as np
import pytest
from xmipy import XmiWrapper
from modflow_devtools.markers import requires_pkg


@pytest.fixture
Expand All @@ -26,9 +26,12 @@ def simple_sim(tmp_path):
return sim


@requires_pkg("xmipy")
@pytest.mark.parametrize("tsmult", [1.0, 1.2])
def test_tdis_tsmult(tsmult, simple_sim, targets):
"""Check totim values to ensure they avoid accumulation errors."""
from xmipy import XmiWrapper

sim = simple_sim

# Add TDIS package using time variables
Expand Down

0 comments on commit 6f22a9c

Please sign in to comment.