Pytest plugin used to setup environment variables with django-dotenv
Project description
pytest-django-dotenv
Pytest plugin used to specify dotenv for your tests. This project uses django-dotenv to load your environment variables from your dotenv file.
Installation
pip install pytest-django-dotenv
Setup
Base setup uses .env
file which is placed equally with virtual environment
directory. If you want to change that behavior you have to add env_path
to your
pytest.ini
file which allow you to change path to dotenv file starting from
parent of virtualenv directory.
Example:
If we have virtualenv i a
directory and dotenv file is placed in parent of a
directory then you should add this to your pytest.ini
file.
[pytest]
env_path =
../.env
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
Built Distribution
Close
Hashes for pytest-django-dotenv-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e66643749cbc53d7ea4231860bccc616cc92b9b305034013374e42b2ac5ba0b |
|
MD5 | 6023bdd0f3c202847879f34f3867fff2 |
|
BLAKE2b-256 | 5602e20469fcc2c4e44f17f4af2da131bfaea87b4717903c41eb172259616250 |
Close
Hashes for pytest_django_dotenv-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 277f117093d3495107a516e27beb58b289701851d25b6e643d68120048940ada |
|
MD5 | bc59211efd08a3e4e7465dbddba4df7f |
|
BLAKE2b-256 | 76d8e0ac9d1f92881f6fd5c83d38fe2a24b760fbfc26151f3656fc426753ac31 |