This moves all of the tests out to the top level so that unittest auto-discovery can work, and so we don't unnecessarily distribute them as part of the package. It fixes a test that was broken but wasn't previously being run. It also drops tox in favour of pdm for the virtual environment setup, and sets up testing across different python versions.
Tests can now be run with python -m unittest (or python -m unittest discover -t . -s tests to be a bit more strict), or pdm run test.
This moves all of the tests out to the top level so that
unittest
auto-discovery can work, and so we don't unnecessarily distribute them as part of the package. It fixes a test that was broken but wasn't previously being run. It also drops tox in favour of pdm for the virtual environment setup, and sets up testing across different python versions.Tests can now be run with
python -m unittest
(orpython -m unittest discover -t . -s tests
to be a bit more strict), orpdm run test
.