How do I use pytest with virtualenv?
There is a bit of a dance to get this to work: activate your venv : source venv/bin/activate install pytest : pip install pytest re-activate your venv: deactivate && source venv/bin/activate The reason is that the path to pytest is set by the sourceing the activate file only after pytest is actually installed in the … Read more