Skip to content

JonnyFunFun/pytest-envfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A py.test plugin for parsing environment files prior to executing tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages