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 hashes)

Uploaded Source

Built Distribution

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