Skip to content

Commit

Permalink
Extract test example from docstring, moved to github
Browse files Browse the repository at this point in the history
Moved to
#77 (comment)
  • Loading branch information
jamescooke committed Feb 27, 2019
1 parent eb05a4a commit e1f5d50
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/flake8_aaa/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@ def build_assert(cls: Type[_Block], nodes: List[ast.stmt], min_line_number: int)
The filtering is *still* running off the line number of the Act
node, when instead it should be using the last line of the Act
block.
TODO: This case needs testing::
with mock.patch(thing):
with pytest.raises(ValueError):
do_thing()
print('hi')
Does the ``print('hi')`` get correctly grabbed by the Act Block?
"""
return cls(filter_assert_nodes(nodes, min_line_number), LineType.assert_block)

Expand Down

0 comments on commit e1f5d50

Please sign in to comment.