Skip to main content

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

Metadata

Release files for pytest-django-dotenv 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-django-dotenv 0.1.2
File Size Uploaded
pytest-django-dotenv-0.1.2.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-django-dotenv 0.1.2
File Interpreter ABI Platform
pytest_django_dotenv-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / pytest-django-dotenv-0.1.2.tar.gz

Download URL pytest-django-dotenv-0.1.2.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4e66643749cbc53d7ea4231860bccc616cc92b9b305034013374e42b2ac5ba0b
BLAKE2b-256 checksum
How to use checksums
5602e20469fcc2c4e44f17f4af2da131bfaea87b4717903c41eb172259616250
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pytest_django_dotenv-0.1.2-py3-none-any.whl

Download URL pytest_django_dotenv-0.1.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
277f117093d3495107a516e27beb58b289701851d25b6e643d68120048940ada
BLAKE2b-256 checksum
How to use checksums
76d8e0ac9d1f92881f6fd5c83d38fe2a24b760fbfc26151f3656fc426753ac31
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page