Skip to main content

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(...)

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

If you're not sure about the file name format, learn more about wheel file names.

flake8_pytest_fixtures_style-0.0.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page