Skip to main content
Travis build Read the Docs PyPI PyPI - Python Version flake8-aaa is licensed under the MIT License

Flake8-AAA

A linter for Python tests.

  • A Flake8 interface to automatically lint test files as part of your Flake8 run.

  • A command line interface for custom (non-Flake8) usage and debugging.

  • Tests are linted against the Arrange Act Assert pattern.

    TL;DR following the AAA pattern means tests look like this:

    def test():
        """
        __docstring__
        """
        <ARRANGE block> # set up of the system under test (SUT)
    
        <ACT block> # perform a single action on the SUT
    
        <ASSERT block> # check that the SUT changed as expected

    You might want to take a look at the examples.

Compatibility

  • Pytest and unittest styles of testing supported.

  • Compatible with Black formatted code.

  • Tested on latest three versions of Python: 3.5, 3.6 and 3.7.

  • Python 2 supported up to v0.4.0: pypi, docs, tag.

See the “Compatibility list” on ReadTheDocs for full info.

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.6.2, mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.6.7 on Linux

The aaa: 0.6.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

Metadata

Release files for flake8-aaa 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-aaa 0.6.2
File Size Uploaded Provenance Actions
flake8-aaa-0.6.2.tar.gz 13.5 kB Without provenance Details for flake8-aaa-0.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-aaa 0.6.2
File Interpreter ABI Platform Actions
flake8_aaa-0.6.2-py3-none-any.whl Python 3 none any Details for flake8_aaa-0.6.2-py3-none-any.whl

Total release size: 29.7 kB

Release files / flake8-aaa-0.6.2.tar.gz

Download URL flake8-aaa-0.6.2.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a9fe8564a8e455f575b1b06d7f01f1fa7f76722f2f60c9033a24ada375224172
BLAKE2b-256 checksum
How to use checksums
46d1593a1f9e5e2081ee2a603d2b7958ab7d49e015c93dffd0f0816bae894a83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

Release files / flake8_aaa-0.6.2-py3-none-any.whl

Download URL flake8_aaa-0.6.2-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3e5382e371ed22f51641bc219ff397151a9f810fab10529f29f4ae0519479c7
BLAKE2b-256 checksum
How to use checksums
c991c72f06dbb4dbfcdb2f3d76cc5197e94ee0a85a01162f4be599ef3995f2a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

Security for flake8-aaa 0.6.2

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.

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files No provenance

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