Flake8-AAA
A linter for Python tests.
Pytest and unittest styles supported.
Tests are linted against the Arrange Act Assert pattern.
TL;DR following the AAA pattern means tests look like this:
def test(): """ __docstring__ """ # ARRANGE: set up of the system under test (SUT) # ACT: perform a single action on the SUT # ASSERT: check that the SUT changed as expectedProvides a Flake8 interface to automatically lint test files as part of your Flake8 run.
Provides a command line interface for custom (non-Flake8) usage and debugging.
Installation
Install with pip:
$ pip install flake8-aaa
Integration with Flake8
Given that you already have Flake8 installed in the same environment, check that Flake8-AAA was installed correctly by asking flake8 for its version signature:
$ flake8 --version 3.7.7 (aaa: 0.5.2, mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.0) CPython 3.6.7 on Linux
The aaa: 0.5.2 part of that output tells you flake8 found this plugin. Now you can run flake8 as usual against your project and Flake8-AAA will lint your tests via its plugin:
$ flake8
Resources
Tested on Pythons 3.5 and 3.6.
Metadata
Release files for flake8-aaa 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flake8-aaa-0.6.0.tar.gz | 12.8 kB | Without provenance | Details for flake8-aaa-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flake8_aaa-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for flake8_aaa-0.6.0-py3-none-any.whl |
Total release size: 27.6 kB
Release files / flake8-aaa-0.6.0.tar.gz
| Download URL | flake8-aaa-0.6.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08d6899ab6e5db0a9e99daa7ff53bf1a0b27b88c45d435d678142fcf4d03d88e
|
|
BLAKE2b-256 checksum How to use checksums |
4902e17b287344b39d9fdd8e28204c4a26f41c521d296e40857100a752528249
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2
|
Release files / flake8_aaa-0.6.0-py3-none-any.whl
| Download URL | flake8_aaa-0.6.0-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d3e01cc8664cb8dff882df2d6d70c7fdedcd77491c86e8be3a14a2a5cbc377e
|
|
BLAKE2b-256 checksum How to use checksums |
66f4c50615e2828c5af2fc56619aef7fc6b4db59fe88c42b1abac83c1c67f902
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2
|
Security for flake8-aaa 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.