Tadaboody / good_smell

A linting/refactoring library for python best practices and lesser-known tricks
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

Get rid of clunky generator in test collection #39

Closed Tadaboody closed 5 years ago

Tadaboody commented 5 years ago

To get rid of https://github.com/Tadaboody/good_smell/blob/master/tests/test_collection.py#L34 we need to be able to stop collecting one test case before starting another one So instead of formatting tests

#:<Test description>
#<Comma-seperated list of warning symbols emmited> or "None"
<Python code emitting the smells>
# ==>
<Python code after fixing the smell>
#:<next title>

Just format them like this

#:<Test description>
#<Comma-seperated list of warning symbols emmited> or "None"
<Python code emitting the smells>
# ==>
<Python code after fixing the smell>
# Special end symbol like END or !!
<Whatever>
#:<next title>