Skip to main content

A flake8 extension that checks pytest fixtures

Project description

flake8-pytest-fixtures-style

Build Status Maintainability Test Coverage PyPI version PyPI - Python Version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_pytest_fixtures_style-0.0.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file flake8_pytest_fixtures_style-0.0.3.tar.gz.

File metadata

File hashes

Hashes for flake8_pytest_fixtures_style-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7c6fed42a76099a111395087ab24a867af0fbb40670e058874a88d85223809a8
MD5 d1a946cbde510175a4314de19d3ea758
BLAKE2b-256 50de397d2146db3e23a4eb0d34fbc04c57c0626692c48d052883ef13b0ef7f6c

See more details on using hashes here.

File details

Details for the file flake8_pytest_fixtures_style-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_pytest_fixtures_style-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8d563dcbe857fbf2ea75028fc4922ba447e9e0e8482720e1f86546611a89a191
MD5 ec5f49eef2b0dd8da8b3f1bdfc8b8331
BLAKE2b-256 9df22a7b02edaba03bd4817c8d039933535311f676c53d4128f94cee76857768

See more details on using hashes here.

Supported by

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