KnowledgeEdgeAI / PETs_for_Public_Health_Challenge

A Privacy Enhanced Tool for predicting hotspot areas during pandemic, analyzing consumption trends and estimating contact matrix.
https://pets-for-public-health-challenge.readthedocs.io/en/latest/
MIT License
1 stars 1 forks source link

Use a testing framework #4

Closed Bisaloo closed 3 weeks ago

Bisaloo commented 3 weeks ago

The current script in tests/ only prints results and will not error if an unexpected return value is returned.

A recommended practice is to use a test framework and test outputs against specific assertions. If the assertions are not verified, an error is returned, which provides a clearer signal that something went wrong.

Some background & practical info for writing tests and using a test framework: https://www.pyopensci.org/python-package-guide/tests/index.html

Bisaloo commented 3 weeks ago

I'm happy to submit a PR for this issue if that'd be helpful. Please let me know.

manandraj20 commented 3 weeks ago

yes @Bisaloo Please go ahead! Let us know if you need any additional context, especially regarding the tests