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.1.tar.gz (6.1 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.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flake8_pytest_fixtures_style-0.0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for flake8_pytest_fixtures_style-0.0.1.tar.gz
Algorithm Hash digest
SHA256 aa72eb7e43516e66766f6bd53704c4414fb8c5ac5d88bebd50aba80e6f05bc57
MD5 fb121a801560c3883c57397675137308
BLAKE2b-256 8c79da3dcf49049c9168f708151f122614df807e1df6ef9fb2cda07a8fb5eb4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flake8_pytest_fixtures_style-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for flake8_pytest_fixtures_style-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 972132bcde7e93311bdb3123b39164f3d321a6361572d1e708602e8a1feaf1a8
MD5 3d303ec528b55ef26bb6b2ee2091f4a0
BLAKE2b-256 8435decebf97c972c33596b5b1917b442000e8f8198a97fa1c08b504460b091e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.3

2 files

0.0.2

2 files

This release

0.0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page