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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b3091bca476609f2a0368b533cba69c3be7d016f5d792d595a3d4ff38d3f30f
|
|
| MD5 |
8c7b542b1ca012422b437b817cdeac39
|
|
| BLAKE2b-256 |
02bde72208a739200be4a9412a8f937ba93c762887bae6bbd703e68fc2a4ffff
|
File details
Details for the file flake8_unused_fixtures-0.3.3-py3-none-any.whl.
File metadata
- Download URL: flake8_unused_fixtures-0.3.3-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/23.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d19e69ae410157a118902aff710a9613d928da55d1319a07cd3f912572d52a6d
|
|
| MD5 |
f1da74a29f4f57ec129aea4342ee6ffb
|
|
| BLAKE2b-256 |
b0e15e0ac128bb70eaae223d5b4e9594c86ad4a92ff4cc8965d07ce9aae80ad5
|