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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9690d1fa3c58992134d56e2af6e850d75da38b8bb4f562c0e374c74bf3e8f93a |
|
MD5 | f2a47fcb9de40e382701c5d5189c9480 |
|
BLAKE2b-256 | 6400b6481c1cc01653324937fe270b98a45209c939e9807e014fb5cd0ec8d507 |
Close
Hashes for flake8_pytest_fixtures_style-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3762614de4eb3505b55d3ccd860de2791de8acbc9408cb9b522b3beac3fa6c9 |
|
MD5 | 28b5bf1ea9a73df5d7f821f0d8f1e263 |
|
BLAKE2b-256 | ed947380d7eabbec81d8296a8624faafae175b894f6471cee25ec065ecdc0846 |