[x] kenmerkendewaarden/tests/conftest.py:11: PytestRemovedIn9Warning: Marks applied to fixtures have no effect >> remove these marks
[x] add fixtures for df_ext, df_ext_12 and df_meas, instead of reading netcdf in each test
[x] consider adding diafiles with testdata to repos to make tests independent on ddl availability and make test value results stable. Use files from TK for instance. This will not work for kw.derive_statistics() and maybe others
[x] also move test_tidalindicators.py to this dataset instead of a fictive one
[x] try if reducing the time extent speeds up the slow measurement_amount tests (they are not essential to the kw-workflow, so should not take too much time) >> does not matter unfortunately
[x] add only-12 (no 345) check to all functions that use ext, including pytest.raises
[x] havengetallen: add tests for two plotting functions
[x] data_retrieve: add test for retrieve_catalog with crs. Is tstart and timezone of retrieved+read netcf asserted for?
[x] data_analysis: add tests for plot_measurements
[x] data_analysis: add tests for df_amount_pcolormesh (requires fixture for data_amount, so maybe leave this uncovered)
[x] data_retrieve: add tests for nap2005_correction and for some uncovered exceptions
[x] gemiddeldgetij: add test for exception
[x] tidalindicators: add test for thresholds, remove hasattr >> continue check or is it of added value?
Todo:
kenmerkendewaarden/tests/conftest.py:11: PytestRemovedIn9Warning: Marks applied to fixtures have no effect
>> remove these markskw.derive_statistics()
and maybe otherspytest.raises
retrieve_catalog
with crs. Is tstart and timezone of retrieved+read netcf asserted for?plot_measurements
df_amount_pcolormesh
(requires fixture for data_amount, so maybe leave this uncovered)nap2005_correction
and for some uncovered exceptionshasattr >> continue
check or is it of added value?