Skip to content

msinamsina/pytest-pyvenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c98e6a5 · Feb 27, 2024

History

44 Commits
Feb 25, 2024
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Feb 24, 2024
Feb 27, 2024
Feb 24, 2024
Feb 25, 2024
Feb 27, 2024
Feb 24, 2024
Feb 24, 2024

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.