Marking # act
on a multi-line function call is unintuitive
#165
Labels
type:bug
Something isn't working
# act
on a multi-line function call is unintuitive
#165
Current behaviour
Given a test where we want to call a validator and assert that no errors were raised (and the validator is
-> None
so there's no output to check either), we have:But Flake8-AAA can not find this Act block:
Instead the
# act
annotation has to be put "inside" the function's args:Which gives:
Expected behaviour
Marking the line with closing parenthesis should work
) # act
. It looks cleaner. It also means that as args / kwargs are stuffed inside an already-annotated function call and the single line is reformatted to be multi-line, Flake8-AAA won't break.The text was updated successfully, but these errors were encountered: