A pytest plugin that lists fixtures defined but not used in a test run. Useful for keeping test suites clean. Current version: 0.3.1. Requires Python >=3.9. Maintained, release cadence is irregular.
pip install pytest-unused-fixturesVerified import paths — ran on the pinned version, not inferred.
Basic usage: define fixtures, run `pytest --unused-fixtures`, and optionally ignore specific ones.
Ensure your fixture is defined in the test suite (e.g., conftest.py or test module).
Update your custom checks to handle an empty set instead of `None`.
No action needed.
Upgrade to 0.3.0 or later: `pip install --upgrade pytest-unused-fixtures`
This is expected behavior. Use `@ignore_unused_fixture` on fixtures you don't want flagged.
No dependency data recorded yet.