Skip to main content

A py.test plugin that parses environment files before running tests

Project description

https://travis-ci.org/JonnyFunFun/pytest-envfiles.svg?branch=master

pytest-envfiles

pytest-envfiles is a py.test plugin that allows you to specify environment variable files that are to be parsed prior to executing tests. These files contain environment variables in a KEY=VALUE format.

Installation

Use pip:

pip install pytest-envfiles

Usage

In your pytest.ini file add a key, env_files and the environment variable files as a line separated list. The listed files will be parsed prior to test execution

[pytest]
env_files =
    ./common.env
    ./tests.env
    /opt/secrets.env

Project details


Release history Release notifications

This version

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-envfiles, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest-envfiles-0.1.0.zip (5.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page