ESCOMP / CAM-SIMA

Community Atmosphere Model - System for Integrated Modeling of the Atmosphere
3 stars 12 forks source link

CAM config and build cache doctests should be converted to unittest tests #190

Closed nusbaume closed 1 year ago

nusbaume commented 2 years ago

In order to complete the transition of moving the python Github Actions workflow over to pytest, which will allow any future tests to be run in the Github Actions CI system automatically (issue #179), some of the doctests in cam_config.py and cam_build_cache.py will also need to be converted to unittest tests, similar to what was done with cam_autogen.py (PR #187).

This would be beneficial as well because it would finally make a clean separation in the code for what should be a doctest (a test that requires only one or two direct function calls and no pre-staging steps) and unittest tests (basically everything else).