Flake8 pytest plugin
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)
Release files for flake8-pytest 1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flake8-pytest-1.4.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flake8_pytest-1.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / flake8-pytest-1.4.tar.gz
| Download URL | flake8-pytest-1.4.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19f543b2d1cc89d61b76f19d0a9e58e9a110a035175f701b3425c363a7732c56
|
|
BLAKE2b-256 checksum How to use checksums |
b9aadfb17bc4660b4ef199c1cd9211a77456ee6d93b8bf79e6b8c46108435147
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / flake8_pytest-1.4-py2.py3-none-any.whl
| Download URL | flake8_pytest-1.4-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
97328f258ffad9fe18babb3b0714a16b121505ad3ac87d4e33020874555d0784
|
|
BLAKE2b-256 checksum How to use checksums |
79ca1baaca42e1ff50bc0758277e4e58452d3fd5f193418070830df90a07a10e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|