openclimatefix / uk-pv-national-xg

National PV forecasting using Gradient Boosted Methods.
4 stars 3 forks source link

add tests #5

Closed peterdudfield closed 1 year ago

peterdudfield commented 1 year ago

Would be great to add some unittests for the production bits of the code. Perhaps as a resonable first go, aim for >50% coverage.

Perhaps a way to breka up the test could be

You'' have to think a bit how to mock the input data. You can either save some small files in git, or add some conftest.py pytest fixtures that will make these

pytest is a good frame work for running this.

CI can be set up like this