A package for create venv in tests
Project description
Pytest-env
This is a simple plugin for pytest that allows you to set environment variables for your 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-pyvenv-0.1.6.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file pytest-pyvenv-0.1.6.tar.gz
.
File metadata
- Download URL: pytest-pyvenv-0.1.6.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1184b05d07993594fd3957d2493c227dde2d6a0bb0ca74eb2754e149ad8f8a3e |
|
MD5 | 91cc69fa822d547af500d609527ce32b |
|
BLAKE2b-256 | be526fe60f2c92b8a04e28d880b6d755fad338b34294d4c5e460033e3c009a62 |
File details
Details for the file pytest_pyvenv-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: pytest_pyvenv-0.1.6-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 352bd0b064ecac30a0a6a0b51a0d62dafb3f8331c7602cdb11d2547c9588624a |
|
MD5 | 9aacac3f40c1b4a042c549c6f7b37e5b |
|
BLAKE2b-256 | b1eeb37bafcda49abc013259ed8ad5698e4aaaf550e53feb9639e69abf7373f6 |