View on GitHub

sustainable_development_course

Course material for "Scientific Software Development"

The required commands in live session 5

Testing

Pytest and the other packages should already be installed in your environment.

You will place your unit tests inside a folder test or tests inside your src/ directory. You can then run pytest using

python -m pytest

and it will automatically find the tests in your test folder. To get more output, or to enable print output when running pytest, use the -v, or -s flag.