A flake extension that checks pytest fixtures
Project description
flake8-pytest-fixtures-style
A flake8 extension that checks pytest fixtures.
Installation
pip install flake8-pytest-fixtures-style
Usage
$ flake8 text.py
text.py:2:5: PF001: pytest fixture "your_func_name" returning another fixture must be suffixed with "_factory"
Error codes
Error code | Description |
---|---|
PF001 | fixture factories must be suffixed with "_factory" |
PF002 | fixtures unused in test function body must be specified via a @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
Close
Hashes for flake8_pytest_fixtures_style-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa72eb7e43516e66766f6bd53704c4414fb8c5ac5d88bebd50aba80e6f05bc57 |
|
MD5 | fb121a801560c3883c57397675137308 |
|
BLAKE2b-256 | 8c79da3dcf49049c9168f708151f122614df807e1df6ef9fb2cda07a8fb5eb4a |
Close
Hashes for flake8_pytest_fixtures_style-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 972132bcde7e93311bdb3123b39164f3d321a6361572d1e708602e8a1feaf1a8 |
|
MD5 | 3d303ec528b55ef26bb6b2ee2091f4a0 |
|
BLAKE2b-256 | 8435decebf97c972c33596b5b1917b442000e8f8198a97fa1c08b504460b091e |