Skip to content

Check for assert statements in Arrange block #147

@jamescooke

Description

@jamescooke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions