Skip to content

msinamsina/pytest-pyvenv

Repository files navigation

Pytest-pyvenv

This is a simple plugin for pytest that allows you to create a virtual environment inside the tests.

Installation

From PyPI

pip install pytest-pyvenv

From Source

pip install git+https://github.com/msinamsina/pytest-pyvenv.git

Usage

def test_env(pyvenv):
    pyvenv.install_package('pytest-pyvenv')
    pyvenv.run('mkdir -p tests')

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.