Testing

pytest

Basic testing is done with pytest.

Make sure that the code is installed from source as editable

python -m pip install -e ."[test]"

To test the code, go to where the source code is, and run

python -m pytest

tox

To test in different environments, you can use tox. Install tox and run

tox

This tests all the environments listed in the tox.ini file, in env_list. To test a specific one, run e.g.

tox -e py39