Skip to main content
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

Download files

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

Source Distribution

pytest-envfiles-0.1.0.zip (5.2 kB view details)

Uploaded Source

File details

Details for the file pytest-envfiles-0.1.0.zip.

File metadata

  • Download URL: pytest-envfiles-0.1.0.zip
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-envfiles-0.1.0.zip
Algorithm Hash digest
SHA256 7e0390141358c9fbf32be6de26eda7b83b456f0c8419c66291675d932d239298
MD5 53ce0ab762cbd4f8c1846f51c1a8b9b6
BLAKE2b-256 36cb669dc6292b2ddac3c0e482135322b7e291573f4aece46e8085a0420852eb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page