Skip to content

Commit

Permalink
add test for load with extra pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Jan 6, 2025
1 parent badcecd commit 950e534
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions autotest/test_modflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,22 @@ def test_modflow_load(namfile, example_data_path):
assert model.model_ws == str(mpath)


def test_modflow_load_with_extra_pkg(example_data_path):
namfile = Path("freyberg") / "freyberg.nam"
mpath = Path(example_data_path / namfile).parent

# extra pkg
dummy_extra_pkg_for_test = {"DUM": "Dummy"}

model = Modflow.load(
mpath / namfile.name,
verbose=True,
model_ws=mpath,
extra_pkgs=dummy_extra_pkg_for_test,
)
assert model.mfnam_packages["DUM"] == "Dummy"


@pytest.mark.parametrize(
"path,expected",
[
Expand Down

0 comments on commit 950e534

Please sign in to comment.