flake8_unused_fixtures

Warn about unnecessary fixtures in tests' definition.


Keywords
flake8, lint
License
BSD-3-Clause
Install
pip install flake8_unused_fixtures==0.3.2

Documentation

flake8_unused_fixtures

This project searches for all functions with prefix "test_" or suffix "_test" and searches for all unused fixture names inside the function body. For now, it does not check if the function is actually marked as fixture.

It is assumed that fixtures that do not need to be directly accessed are declared using @pytest.mark.usefixtures