$npx skillfedfor your agent

pytest-deadfixtures

A simple plugin to list unused fixtures in pytest

With conditionsPyPI TestingReleased Jan 20261.0M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_deadfixtures-3.1.0-py2.py3-none-any.whl
v3.1.0 · released 2026-01-15 · 1 runtime deps: pytest

Yes, if you maintain a pytest suite and want to identify fixture bloat. The plugin is stable, has no security vulnerabilities, and low install friction. The aging maintenance status (211 days since last release) is a minor concern but not a blocker—the package is not archived and works with modern Python versions. Use it as a periodic audit tool rather than a blocking CI gate.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a single runtime dependency on pytest.
  • Maintenance status is aging—last release was 211 days ago—but the repository is not archived and the package is marked Production/Stable.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.

last release 2026-01-15 (211 days) · last repo commit 2026-01-15 · 166 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,021,674 downloads/mo, #4,490 on PyPI

Verify before relying

pip install pytest-deadfixtures

# In your test directory, run:
pytest --dead-fixtures

# To find duplicates:
pytest --dup-fixtures
  • Whether the aging maintenance status (211 days since last release) affects compatibility with the latest pytest versions.
  • How the duplicate detection handles fixtures with falsy return values, beyond the documented skip behavior.
Same gist for agents: .md · .json

What it is and what it does

pytest-deadfixtures is a pytest plugin that analyzes your test suite to report fixtures that are never used and fixtures that may be duplicated. It runs as a separate pytest invocation with command-line flags and does not execute your tests during analysis, making it suitable for CI pipelines when run after the main test suite.

The plugin offers three main features: listing unused fixtures with their location and docstring, identifying potentially duplicate fixtures by comparing return values, and ignoring specific fixtures via a @deadfixtures_ignore decorator. It's designed as a code-quality tool to help maintain lean test suites by surfacing fixture debt.

Use it for

  • Audit an existing test suite to find fixtures defined but never referenced by any test.
  • Detect duplicate fixture definitions that provide the same test data or setup, reducing maintenance burden.
  • Integrate into CI to enforce fixture hygiene by running --dead-fixtures after the main test suite passes.
  • Mark intentionally unused fixtures with @deadfixtures_ignore to exclude them from reports without removing them.
  • Review fixture usage patterns with verbose output to understand which fixtures are actually exercised.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you maintain a pytest suite and want to identify fixture bloat.

The plugin is stable, has no security vulnerabilities, and low install friction. The aging maintenance status (211 days since last release) is a minor concern but not a blocker—the package is not archived and works with modern Python versions. Use it as a periodic audit tool rather than a blocking CI gate.

Install

pytest-deadfixtures on PyPI

Before you install

Low install friction with a single runtime dependency on pytest. Maintenance status is aging—last release was 211 days ago—but the repository is not archived and the package is marked Production/Stable.

License in practice

MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install pytest-deadfixtures

# In your test directory, run:
pytest --dead-fixtures

# To find duplicates:
pytest --dup-fixtures

Verify before relying

  • Whether the aging maintenance status (211 days since last release) affects compatibility with the latest pytest versions.
  • How the duplicate detection handles fixtures with falsy return values, beyond the documented skip behavior.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pytest
MaintenanceAging 211 days since the last release
Last repo commit
First released
Downloads1,021,674 / month, #4,490 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Testing

Evidence: pytest_deadfixtures-3.1.0-py2.py3-none-any.whl

Tags

Capabilities
pytest unused fixturesfind dead fixturesduplicate fixtures detectionpytest fixture cleanuptest fixture analysispytest code qualityfixture linting
Topics
pytest-plugintest-qualityfixture-analysis

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 › “find dead fixtures”

  • pytest-deadfixturesA pytest plugin that identifies unused and duplicated fixtures in…
  • pytest-unused-fixturesA pytest plugin that identifies and reports fixtures defined in your…
  • vultureVulture is a static code analyzer that finds unused code in Python…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

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.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also fixtures · pytest-unused-fixtures · pytest-lazy-fixtures · pytest-plus · pytest-redis · vulture · pytest-print · pytest-custom-exit-code · pytest-rabbitmq · pytest-docker