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.
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