vcrpy icon indicating copy to clipboard operation
vcrpy copied to clipboard

Use importlib_resources to find test fixtures

Open valgur opened this issue 4 years ago • 0 comments
trafficstars

Hi!

This PR tweaks the file fixture loading in tests to use importlib_resources to ensure that tests can be run from any working directory (or even as part of a wheel or sdist package).

Since this adds a dependency, I added it to setup.py and also created a separate installation target for tests so

pip install .[tests]

will work.

valgur avatar May 10 '21 06:05 valgur