James Cooke
James Cooke
* [x] Build a separate documentation page for each error code. * [x] Ensure that each URL contains the error code and message: "-AAA05-blank-line-in-block" * [ ] Include sections "Problematic...
An Act block can be overly complex when parent nodes of the Act node contain "extra" lines. In a simple example, an Act node with a context manager ('pytest_raises' or...
Ensure that assertions are not carried out in the Arrange block - a smell that arrangement is too complicated. * [ ] Add bad examples. * [ ] Update documentation...
Example: ```py def test_addition(): result = 1 + 1 assert result == 2 result += 1 assert result == 3 result /= 3 assert result == 1 ``` Expected error:...
## Current behaviour The following test gives an `AAA06 comment in Act block`: ```py def test() -> None: # NOTE: the most interesting thing about this test is this comment...
## Current behaviour Yapf crashes when attempting to format a function which contains an unexpected `await`. ```sh cat > my_bad.py ``` ```py def run() -> None: await do_thing() ^d ```...
## Current behaviour When running Flake8-AAA on a test file that has additional blank lines in blocks, error `AAA05` is _not_ raised when those additional lines are followed by a...
## Current behaviour Tests are still using `tmpdir` fixture which is deprecated: https://docs.pytest.org/en/stable/how-to/tmp_path.html#the-tmpdir-and-tmpdir-factory-fixtures ## Expected behaviour Upgrade these fixtures to use `tmp_path`. Tests can be hunted down with: ```sh tox...