-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(pytest): refactor autotests (#1458)
* use shared pytest fixtures * update developer docs with pytest info * remove unneeded files (readme.txt, old nosetest script) * rename t-numbered test scripts according to scope & purpose * update pytest.ini to match both test_[something].py and [something]_tests.py * add --keep <dir> pytest CLI argument (saves test outputs from automatic cleanup) * use pytest markers to condition tests on executable availability & optional deps * use temporary directories in example scripts, tutorials & notebooks (with optional --keep <dir> arg for scripts) * generate coupled model tests dynamically from example models with pytest_generate_tests * use file lock to coordinate mf6 example model sharing (https://pypi.org/project/pytest-xdist/#making-session-scoped-fixtures-execute-only-once) * fold example scripts, tutorials & notebooks into CI test step (and include them on Windows CI) * add jupyter and jupytext as test dependencies (since example scripts, tutorials and notebooks included in test suite) * don't fail network-bound tests if resource is unavailable * sequester pymake comparison usage in regression test module * use pytest-benchmark for performance tests
- Loading branch information
Showing
223 changed files
with
28,737 additions
and
31,464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.