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.3.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: flake8_unused_fixtures-0.3.3.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/23.1.0

File hashes

Hashes for flake8_unused_fixtures-0.3.3.tar.gz
Algorithm Hash digest
SHA256 2b3091bca476609f2a0368b533cba69c3be7d016f5d792d595a3d4ff38d3f30f
MD5 8c7b542b1ca012422b437b817cdeac39
BLAKE2b-256 02bde72208a739200be4a9412a8f937ba93c762887bae6bbd703e68fc2a4ffff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flake8_unused_fixtures-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d19e69ae410157a118902aff710a9613d928da55d1319a07cd3f912572d52a6d
MD5 f1da74a29f4f57ec129aea4342ee6ffb
BLAKE2b-256 b0e15e0ac128bb70eaae223d5b4e9594c86ad4a92ff4cc8965d07ce9aae80ad5

See more details on using hashes here.

Supported by

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