CABLE-LSM / benchcab

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

Property based testing #175

Open SeanBryan51 opened 8 months ago

SeanBryan51 commented 8 months ago

The tests for get_fluxsite_comparisons(), and get_fluxsite_tasks() should probably use a property based testing approach rather than testing results against hard coded values.

https://github.com/CABLE-LSM/benchcab/blob/e160bba8324042821d196efb759b534f611327f4/tests/test_fluxsite.py#L394

https://github.com/CABLE-LSM/benchcab/blob/e160bba8324042821d196efb759b534f611327f4/tests/test_fluxsite.py#L422

Properties we could test:

ccarouge commented 2 months ago

Putting it at low priority since there is no development of the fluxsite feature planned in the near future. The tests are working now and will not break unless the fluxsite feature is developed further.