CABLE-LSM / benchcab

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

New design or logic for `test_subprocess.py` #181

Open ccarouge opened 1 year ago

ccarouge commented 1 year ago

A lot of the tests under TestRunCmd in test_subprocess.py are greedy: they test more than they say they are testing.

We could also redesign the tests to be for a series of cases using parameterisation (I'm not sure all are necessary). Tests would be:

And run all of these on this series of inputs:

I'm not sure if all these inputs are necessary or if we need more (do we need to test for capture_output + file printing?).

Also, rename captured in the tests as that is confusing with the capture_output option.