Running and adding to the tests¶
Our tests are kept in the
testsdirectory, and use
pytest. We aim for 101% coverage.
You can install the testing requirements with
pip install -r tests/test-requirements.txt.
The tests can be run with:
pytest --cov=. tests
If you’re not getting 100% coverage, see why with
coverage htmland open the html files (under
htmlcov) in your browser to see which lines aren’t being tested. The config is stored in
flake8style testing can be run with just
flake8 slothto check the directory. The config is stored in