Flake8-AAA is a Flake8 plugin that checks Python tests follow the Arrange-Act-Assert pattern.
Please see the README on GitHub for a general introduction to this project and AAA.
Continue here for more detail about using Flake8-AAA.
- Compatibility list
- Error codes
- AAA01: no Act block found in test
- AAA02: multiple Act blocks found in test
- AAA03: expected 1 blank line before Act block, found none
- AAA04: expected 1 blank line before Assert block, found none
- AAA05: blank line in block
- AAA06: comment in Act block
- AAA99: collision when marking this line as NEW_CODE, was already OLD_CODE
- Options and configuration
- Test discovery and analysis
- Command line
- Release checklist