This cleans up the test, with the following goals:
Move the tests into individual test_ functions, instead of running them at the bottom of the file.
Use pytest fixtures to setup the package in a temporary directory, and then pip install the package.
Use a pytest fixture that yields to automatically pip uninstall the package once testing is finished.
This ended up being a bit of a re-write - sorry for the large diff! But this should make it a lot easier to extend the tests in the future. If anything doesn't make sense please let me know!
This cleans up the test, with the following goals:
test_
functions, instead of running them at the bottom of the file.This ended up being a bit of a re-write - sorry for the large diff! But this should make it a lot easier to extend the tests in the future. If anything doesn't make sense please let me know!