Skip to main content

Warn about unnecessary fixtures in tests' definition.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_unused_fixtures-0.3.2.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

flake8_unused_fixtures-0.3.2-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page