| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- Switch from depreccated yield_fixture to fixture decorator
|
Thank you for this contribution @erika-dike! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
While trying to run the tests locally, I ran into errors when pickle tried to load the already existing database. I think it would be nice if readers do not have to waste any time with this error.
This PR fixes that by creating a temporary database before any tests in the module run and deleting it afterwards. I also took the liberty of switching from the deprecated @pytest.yield_fixture to @pytest.fixture.
Thanks for a wonderful book 😃.