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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-django-dotenv-0.1.2.tar.gz.
File metadata
- Download URL: pytest-django-dotenv-0.1.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e66643749cbc53d7ea4231860bccc616cc92b9b305034013374e42b2ac5ba0b
|
|
| MD5 |
6023bdd0f3c202847879f34f3867fff2
|
|
| BLAKE2b-256 |
5602e20469fcc2c4e44f17f4af2da131bfaea87b4717903c41eb172259616250
|
File details
Details for the file pytest_django_dotenv-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pytest_django_dotenv-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
277f117093d3495107a516e27beb58b289701851d25b6e643d68120048940ada
|
|
| MD5 |
bc59211efd08a3e4e7465dbddba4df7f
|
|
| BLAKE2b-256 |
76d8e0ac9d1f92881f6fd5c83d38fe2a24b760fbfc26151f3656fc426753ac31
|