Skip to main content

Check for uses of Django-style assert-statements in tests. So no more self.assertEqual(a, b), but instead assert a == b.

This module provides a plugin for flake8, the Python code checker.

Installation

You can install or upgrade flake8-pytest with these commands:

$ pip install flake8-pytest
$ pip install --upgrade flake8-pytest

Plugin for Flake8

When both flake8 and flake8-pytest are installed, the plugin is available in flake8:

$ flake8 --version
2.0 (pep8: 1.4.5, flake8-pytest: 1.1, pyflakes: 0.6.1)

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-1.4.tar.gz (3.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-1.4-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file flake8-pytest-1.4.tar.gz.

File metadata

  • Download URL: flake8-pytest-1.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for flake8-pytest-1.4.tar.gz
Algorithm Hash digest
SHA256 19f543b2d1cc89d61b76f19d0a9e58e9a110a035175f701b3425c363a7732c56
MD5 9fb4a08f0643595c700b881d8b7587fe
BLAKE2b-256 b9aadfb17bc4660b4ef199c1cd9211a77456ee6d93b8bf79e6b8c46108435147

See more details on using hashes here.

File details

Details for the file flake8_pytest-1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: flake8_pytest-1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for flake8_pytest-1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 97328f258ffad9fe18babb3b0714a16b121505ad3ac87d4e33020874555d0784
MD5 d2b679258657a9c6e450c32176676f81
BLAKE2b-256 79ca1baaca42e1ff50bc0758277e4e58452d3fd5f193418070830df90a07a10e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.4 This release

2 files

1.3

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