A flake8 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
File details
Details for the file flake8_pytest_fixtures_style-0.0.3.tar.gz
.
File metadata
- Download URL: flake8_pytest_fixtures_style-0.0.3.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6fed42a76099a111395087ab24a867af0fbb40670e058874a88d85223809a8 |
|
MD5 | d1a946cbde510175a4314de19d3ea758 |
|
BLAKE2b-256 | 50de397d2146db3e23a4eb0d34fbc04c57c0626692c48d052883ef13b0ef7f6c |
File details
Details for the file flake8_pytest_fixtures_style-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: flake8_pytest_fixtures_style-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d563dcbe857fbf2ea75028fc4922ba447e9e0e8482720e1f86546611a89a191 |
|
MD5 | ec5f49eef2b0dd8da8b3f1bdfc8b8331 |
|
BLAKE2b-256 | 9df22a7b02edaba03bd4817c8d039933535311f676c53d4128f94cee76857768 |