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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file flake8_unused_fixtures-0.3.2.tar.gz.

File metadata

  • Download URL: flake8_unused_fixtures-0.3.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.1.0

File hashes

Hashes for flake8_unused_fixtures-0.3.2.tar.gz
Algorithm Hash digest
SHA256 ea0a8316e5d399dd2f65ce1afed28bbc8618c09c06b51b4fe6f34b99ac5ef098
MD5 b57d1e6a21b9ed346d1e3ae2ab80a8c2
BLAKE2b-256 582317086a2eff17f78e27990e157f198e3799804c3bf2fa1afd1cc46ba1be07

See more details on using hashes here.

File details

Details for the file flake8_unused_fixtures-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_unused_fixtures-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf0ac51b076f9e6b570a0a83c31d64bffb4f2f7c817890d7da77a46fb73dbc5e
MD5 6231ee644450150e9c82ad6aeccfedcd
BLAKE2b-256 dbded27ea39b8030bafb226bd00323bab9e1656385ef77c211e3a7ce489e71fd

See more details on using hashes here.

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