flake8-aaa
flake8-aaa copied to clipboard
Check for assert statements in Arrange block
Ensure that assertions are not carried out in the Arrange block - a smell that arrangement is too complicated.
-
[ ] Add bad examples.
-
[ ] Update documentation with new error code: "Problematic code", "Correct code", "Rationale", "Exceptions"
-
[ ] Update CHANGELOG
-
[ ] Extra: Add example of
assert
andself.assertEqual()
in Actwith
statement body. This pins this responsibility on the context manager analysis that happens when the Act block is built.