Skip to content

Commit

Permalink
test: make get_namefile_path tests less brittle (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored Jul 26, 2023
1 parent 53b31cc commit 32425e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modflow_devtools/test/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def test_get_model_paths_largetestmodels():
def test_get_model_paths_exclude_patterns(models):
path, expected_count = models
paths = get_model_paths(path, excluded=["gwt"])
assert len(paths) == expected_count
assert len(paths) >= expected_count


@pytest.mark.skipif(
Expand Down Expand Up @@ -227,7 +227,7 @@ def test_get_namefile_paths_largetestmodels():
def test_get_namefile_paths_exclude_patterns(models):
path, expected_count = models
paths = get_namefile_paths(path, excluded=["gwf"])
assert len(paths) == expected_count
assert len(paths) >= expected_count


@pytest.mark.skipif(not any(_example_paths), reason="examples not found")
Expand All @@ -242,10 +242,10 @@ def test_get_namefile_paths_select_prefix():
@pytest.mark.skipif(not any(_example_paths), reason="examples not found")
def test_get_namefile_paths_select_patterns():
paths = get_namefile_paths(_examples_path, selected=["gwf"])
assert len(paths) == 70
assert len(paths) >= 70


@pytest.mark.skipif(not any(_example_paths), reason="examples not found")
def test_get_namefile_paths_select_packages():
paths = get_namefile_paths(_examples_path, packages=["wel"])
assert len(paths) == 43
assert len(paths) >= 43

0 comments on commit 32425e4

Please sign in to comment.