Feature/move unittest by NicolasColombi · Pull Request #732 · CLIMADA-project/climada_python

Changes proposed in this PR:

Move lazy unittest to the integration folder.

List of tests moved:

  • climada/engine/test/test_impact_data/test_emdat_damage_yearlysum (~ 6 sec)
  • climada/engine/unsequa/test/test_unsequa/test_calc_uncertainty_pass (~ 4.5 sec)
  • climada/engine/unsequa/test/test_unsequa/test_plot_unc_cb (~ 3.5 sec)
  • climada/engine/test/test_impact_data/test_scale_impact2refyear (~ 4 sec)
  • climada/engine/test/test_impact_data/test_emdat_to_impact_scale (~ 7 sec)
  • climada/engine/unsequa/test/test_unsequa.py/test_calc_sensitivity_pass (~ 2.3 sec)

This PR decrease the cost of unittest by around 27s. All tests are placed in the integration folder in the new file test_engine.py, except for one plotting function which has his place in: test_plot.py

As a consequence of moving tests, 5 Pylint warnings are transfered from test_unsequa.py to test_plot.py

PR Author Checklist

PR Reviewer Checklist