CLIMADA-project / climada_python

Python (3.8+) version of CLIMADA
GNU General Public License v3.0
291 stars 115 forks source link

split hazard module #871

Closed emanuel-schmid closed 1 month ago

emanuel-schmid commented 2 months ago

Changes proposed in this PR:

This PR fixes #

PR Author Checklist

PR Reviewer Checklist

chahank commented 1 month ago

Excellent PR! This will make the code much cleaner.

Regarding the tests, should the test for IO and Plot be made integration tests only? And should the integration tests for hazard also be split up? And should we aim (not in this PR) to add test for the Plot parts in the future?

emanuel-schmid commented 1 month ago

Should the test for IO and Plot be made integration tests only? 🤷 Imho:

Should the integration tests for hazard be split up? No strong feelings. But, in general, I agree: the modularization of the integration tests could be better structured. Currently we have somehow a mix of distribution patterns: single tested method (test_multi_processing), single tested module (eg, test_nightlight), multiple tested modules together (test_engine), functional category (test_plot, test_multi_processing as meant to be?). Hence assigning a test to an existing test module is somewhat arbitrary.

Adding tests for the Plot parts? Yes! (remember: we always aim for coverage 100% 😁)

emanuel-schmid commented 1 month ago

testing policy discussion to be continued