schireson / pytest-mock-resources

Pytest Fixtures that let you actually test against external resource (Postgres, Mongo, Redshift...) dependent code.
https://pytest-mock-resources.readthedocs.io/en/latest/quickstart.html
MIT License
179 stars 19 forks source link

fix: Make pytest_sessionfinish unlink pmr.json correctly #140

Closed JonM0 closed 2 years ago

JonM0 commented 2 years ago

Proposed fix to issue #139

DanCardin commented 2 years ago

Can't repro outside windows, but it appears to work (or at least doesn't raise the reported exception) with or without the fix in my environments.

If you want to bump the patch version on the pyproject.toml it'll save me another PR to do it myself and I can release right away.