{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"A pytest plugin that automatically loads environment variables from .env files before test runs, with support for multiple files and optional override of existing system variables.","skillfed_tags":["archived","test-configuration"],"use_cases":["Load test-specific environment variables from .env files without modifying system environment during CI/CD pipelines","Manage multiple environment configurations (.env, .test.env, .deploy.env) for different test scenarios","Automatically populate pytest fixtures or test code with environment-based configuration without manual setup","Override environment variables selectively during test runs while preserving production settings in the base environment"],"what_it_does":"pytest-dotenv is a pytest plugin that integrates python-dotenv to automatically load environment variables from .env files before tests run. It detects .env files in the working directory or ancestor directories and populates os.environ without overriding existing system variables by default. The plugin supports multiple configuration files (e.g., .env, .test.env, .deploy.env) defined in pytest config files like pytest.ini or tox.ini, and can be controlled via command-line flags.\n\nThe package depends on pytest and python-dotenv as its only runtime dependencies, making installation lightweight. However, it is archived and abandoned\u2014the last release was in June 2020, and there have been no updates since. While it remains popular (top 5000 packages), the lack of maintenance means it may not be compatible with recent pytest or Python versions, and security or compatibility issues will not be addressed.","worth_installing":"No\u2014not for new projects. The package is archived and abandoned since 2020, with no maintenance or security updates. While it may still work with older pytest and Python versions, there is significant risk of incompatibility with modern tooling. Consider using python-dotenv directly in your test fixtures or conftest.py, or look for actively maintained alternatives that provide the same functionality."},"id":"pytest-dotenv","links":{"html":"https://skillfed.io/packages/pytest-dotenv","md":"https://skillfed.io/packages/pytest-dotenv.md","pypi":"https://pypi.org/project/pytest-dotenv/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-06-16","license_spdx":null,"license_treatment":"permissive","name":"pytest-dotenv","python_support":"unspecified","summary":"A py.test plugin that parses environment files before running tests"},"popularity":{"monthly_downloads":5523005,"position":2082,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.5.2"}
