flake8-aaa icon indicating copy to clipboard operation
flake8-aaa copied to clipboard

Check for assert statements in Arrange block

Open jamescooke opened this issue 4 years ago • 0 comments

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 and self.assertEqual() in Act with statement body. This pins this responsibility on the context manager analysis that happens when the Act block is built.

jamescooke avatar May 03 '20 13:05 jamescooke