CABLE-LSM / benchcab

Tool for evaluation of CABLE land surface model
https://benchcab.readthedocs.io/en/latest/
Apache License 2.0
2 stars 3 forks source link

Unit tests for `benchcab.py` #250

Open abhaasgoyal opened 8 months ago

abhaasgoyal commented 8 months ago

Currently, unit tests do not exist for benchcab.py, which run many sub-modules. Since some of these functions heavily depend on Gadi environment, it'd be great if we could mock the environment within the testing module.

Related as an extension to #246 , where tests for $PROJECT would be converted as unit

Notes: test_benchcab.py used to exist for running PBS scripts - removed in https://github.com/CABLE-LSM/benchcab/pull/198/commits/50dd9b500e4517a09cb162f6d57ac7ec5b9888d8