Added integration/regression tests for climix with input from the NGCD dataset.
Dataset folders and input file patterns are specified in
tests/integration/configuration.yml, and lists in
tests/integration/configuration.py are used to parameterize test functions in
tests/integration/test_indices.py. Example usages:
# Run all tests pytest # Run only integrations tests pytest tests/integration # Run only climix integration tests with ngcd data pytest tests -k "test_ngcd_reg" # or pytest tests/integration/test_indices.py::test_ngcd_reg # Run only climix integration tests with ngcd data for index cdd pytest tests -k "test_ngcd_reg and cdd" # or pytest tests/integration/test_indices.py::test_ngcd_reg -k "cdd"
Indices tested are: