Closed alex-treebeard closed 3 years ago
Closing as this would be better solved with an autouse fixture
Hey - I'm interested in running each notebook in it's own "clean" virtual environment. What do you mean by solving this with an autouse fixture?
hi @bkanuka, there already exists a fixture for running a pytest test case in a venv (see this repo: https://github.com/man-group/pytest-plugins)
My assumption was you can find a solution where it is an autouse fixture such that adding venv as an nbmake feature is redundant.
If you find this isn't the case it would be helpful to understand where the gap is -- we could then reopen this.
Ensuring
!pip install
commands work without contaminating the test environment in the general case requires some thought -- requirements:--system-site-packages