Skip to main content

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


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.7.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pytest_pyvenv-0.1.7-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file pytest-pyvenv-0.1.7.tar.gz.

File metadata

  • Download URL: pytest-pyvenv-0.1.7.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

Hashes for pytest-pyvenv-0.1.7.tar.gz
Algorithm Hash digest
SHA256 cac6e3561776e37d4fe9d247a62220d8e65f99beec18c5daa863a583ccb62955
MD5 fcb1d8ca8c00aebb266e86303f6410fa
BLAKE2b-256 1a30533b97611dcb15f58cd03f22b481be526f6ca7c5ce00773b79a98ad195f6

See more details on using hashes here.

File details

Details for the file pytest_pyvenv-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_pyvenv-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0ddc418d9a2bd5fd8a3aea61829a9b06065a77beaeea759a6274f2a994ae1bf5
MD5 88abb814f7f3a49d49319b67ef3d5bb4
BLAKE2b-256 3845196a61346503ef723261c339e6ec68f5974a1527b7a0bd9dd7dc1b958894

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page