pytest-fixture-config
Fixture configuration utils for py.test
Decision gist · record as of 2026-08-14
Yes, if you need to conditionally skip pytest fixtures based on missing configuration. The package is stable, permissively licensed, and has low install friction. The aging maintenance status (last release 666 days ago) is a minor concern but not a blocker—the repository is still active and the package is marked Production/Stable. Install it if you're managing optional test fixtures or environment-dependent test setup.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a single runtime dependency on pytest.
- Maintenance status is aging—last release was 666 days ago, though the repository remains active with a recent commit in January 2026 and 598 stars.
- The package has been stable since its 2015 initial release.
License · maintenance · safety
MIT license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.
last release 2024-10-17 (666 days) · last repo commit 2026-01-28 · 598 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 351,234 downloads/mo, #7,324 on PyPI
Alternatives
Verify before relying
pip install pytest-fixture-config
# In conftest.py or test file:
import os
from pytest_fixture_config import Config, requires_config
class FixtureConfig(Config):
__slots__ = ('api_key',)
CONFIG = FixtureConfig(api_key=os.getenv('API_KEY'))
@pytest.fixture
@requires_config(CONFIG, ['api_key'])
def my_fixture():
return CONFIG.api_key- Whether the package is actively maintained or in maintenance-only mode given the 666-day gap since last release.
- Compatibility with pytest versions beyond those listed in the changelog (4.0.0+).
What it is and what it does
pytest-fixture-config is a pytest plugin that simplifies managing configuration for test fixtures. It lets you define configuration objects that read values from environment variables or other sources, then use decorators to conditionally skip tests when required configuration is missing. This is useful when your test suite includes optional tests for features you might not have installed or configured on every machine.
The package provides a Config base class you subclass to define your fixture configuration, plus decorators like requires_config and yield_requires_config that automatically skip tests when their required settings aren't available. It integrates directly into pytest as a plugin and requires only pytest as a runtime dependency.
Use it for
- Skip integration tests when external service credentials (API keys, database URLs) are not set in the environment.
- Conditionally run tests for optional features based on whether their configuration is available.
- Manage fixture setup that depends on environment-specific settings without failing the entire test suite.
- Define reusable configuration singletons across multiple test fixtures in a conftest.py.
- Test code paths that require specific tools or services without breaking CI/CD when they're unavailable.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to conditionally skip pytest fixtures based on missing configuration.
The package is stable, permissively licensed, and has low install friction. The aging maintenance status (last release 666 days ago) is a minor concern but not a blocker—the repository is still active and the package is marked Production/Stable. Install it if you're managing optional test fixtures or environment-dependent test setup.
Install
pytest-fixture-config on PyPI
Before you install
Low friction install with a single runtime dependency on pytest. Maintenance status is aging—last release was 666 days ago, though the repository remains active with a recent commit in January 2026 and 598 stars. The package has been stable since its 2015 initial release.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install pytest-fixture-config
# In conftest.py or test file:
import os
from pytest_fixture_config import Config, requires_config
class FixtureConfig(Config):
__slots__ = ('api_key',)
CONFIG = FixtureConfig(api_key=os.getenv('API_KEY'))
@pytest.fixture
@requires_config(CONFIG, ['api_key'])
def my_fixture():
return CONFIG.api_key
Verify before relying
- Whether the package is actively maintained or in maintenance-only mode given the 666-day gap since last release.
- Compatibility with pytest versions beyond those listed in the changelog (4.0.0+).
Package facts
| License | MIT license permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepytest |
| Maintenance | Aging 666 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 351,234 / month, #7,324 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Software Development :: LibrariesTopic :: Software Development :: TestingTopic :: Utilities |
Evidence: pytest_fixture_config-1.8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest fixture configuration”
- pytest-fixture-configProvides configuration objects and decorators for pytest fixtures…
- pytest-base-urlA pytest plugin that injects a configurable base URL into your test…
- pytest-unused-fixturesA pytest plugin that identifies and reports fixtures defined in your…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also pytest-lazy-fixture · pytest-shutil · pytest-skip-markers · pytest-lazy-fixtures · pytest-dependency · pytest-redis · pytest-docker · pytest-deadfixtures · pytest-mock-resources · pytest-profiling