Skip to content

Commit

Permalink
bugfix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hboisgon committed Sep 13, 2024
1 parent a609047 commit 54c8302
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_conda_forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
conda list
- name: Run model build Tests
run: python -m pytest --verbose tests\\test_model_class.py
run: python -m pytest --verbose tests/test_model_class.py::test_build_model
9 changes: 5 additions & 4 deletions tests/test_model_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ def _compare_wflow_models(mod0, mod1):
@pytest.mark.parametrize("model", list(_supported_models.keys()))
def test_model_class(model, example_models):
mod = example_models[model]
mod.read()
# run test_model_api() method
non_compliant_list = mod._test_model_api()
assert len(non_compliant_list) == 0
if mod is not None:
mod.read()
# run test_model_api() method
non_compliant_list = mod._test_model_api()
assert len(non_compliant_list) == 0


@pytest.mark.timeout(300) # max 5 min
Expand Down

0 comments on commit 54c8302

Please sign in to comment.