Skip to content

Commit

Permalink
refactor(tests): explicitly exclude nested example models
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jan 7, 2023
1 parent a70efa1 commit 9ecfa7f
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions autotest/test_z03_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,33 @@
from conftest import should_compare
from simulation import TestSimulation

excluded_models = ["ex-gwf-csub-p02c"]
# skip nested models
# ex-gwf-csub-p02c has subdirs like 'es-001', 'hb-100'
# all others just have 2 folders 'mf6gwf' and 'mf6gwt'
excluded_models = [
"ex-gwf-csub-p02c",
"ex-gwt-hecht-mendez-b",
"ex-gwt-hecht-mendez-c",
"ex-gwt-keating",
"ex-gwt-moc3d-p01a",
"ex-gwt-moc3d-p01b",
"ex-gwt-moc3d-p01c",
"ex-gwt-moc3d-p01d",
"ex-gwt-moc3d-p02",
"ex-gwt-moc3d-p02tg",
"ex-gwt-mt3dms-p02a",
"ex-gwt-mt3dms-p02b",
"ex-gwt-mt3dms-p02c",
"ex-gwt-mt3dms-p02d",
"ex-gwt-mt3dms-p02e",
"ex-gwt-mt3dms-p02f",
"ex-gwt-mt3dsupp631",
"ex-gwt-mt3dsupp632a",
"ex-gwt-mt3dsupp632b",
"ex-gwt-mt3dsupp632c",
"ex-gwt-mt3dsupp82",
"ex-gwt-prudic2004t2",
]
excluded_comparisons = {
"ex-gwf-capture": ("6.2.1",),
"ex-gwf-sagehen": ("6.2.1",),
Expand Down Expand Up @@ -32,9 +58,6 @@ def test_scenario(function_tmpdir, example_scenario, targets):

for exdir in exdirs:
model_name = f"{name}_{exdir.name}"
if exdir.name in ["mf6gwt"]:
pytest.skip(f"Skipping coupled GWT model: {name}/{exdir.name}")

workspace = function_tmpdir / model_name
sim = TestSimulation(
name=model_name,
Expand Down

0 comments on commit 9ecfa7f

Please sign in to comment.