Taken from #221 (comment) (thanks @dougiesquire)
This needs to be addressed before #221.
In our testing suite we have a function https://github.com/xarray-contrib/xskillscore/blob/master/xskillscore/tests/test_deterministic.py#L72
Is there a way this could be moved upstream to conftest.py?
While verbose we could create fixtures for these (5) e.g.
adjust_weights_time():
weights.isel(lon=0, lat=0)
adjust_weights_lat():
weights.isel(lon=0, time=0)
https://matthewrocklin.com/blog/work/2019/06/23/avoid-indirection
Also i'm not sure if we are testing the weight implementation anywhere. As we found out in #248 test_determinstic.py mostly tests the ufunc part. There are some separate test files for functionality e.g. test_skipna_functionality. We should create one for weights.
Taken from #221 (comment) (thanks @dougiesquire)
This needs to be addressed before #221.
In our testing suite we have a function https://github.com/xarray-contrib/xskillscore/blob/master/xskillscore/tests/test_deterministic.py#L72
Is there a way this could be moved upstream to conftest.py?
While verbose we could create fixtures for these (5) e.g.
https://matthewrocklin.com/blog/work/2019/06/23/avoid-indirection
Also i'm not sure if we are testing the weight implementation anywhere. As we found out in #248
test_determinstic.pymostly tests the ufunc part. There are some separate test files for functionality e.g.test_skipna_functionality. We should create one for weights.