Get *one* more line of test coverage

This was mostly to prove to myself that we could possibly reach that
return more than actually covering that return. This just shows how
gnarly this logic actually is. I wish there were a better way to write
it.
This commit is contained in:
Ian Cordasco 2017-06-04 14:51:01 -05:00
parent 86e1fb6e64
commit e8c6a1e2f5
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A

View file

@ -162,6 +162,9 @@ def test_decision_for(select_list, ignore_list, error_code, expected):
style_guide.Decision.Ignored),
(defaults.SELECT, ['E126'], [], ['I'], 'I101',
style_guide.Decision.Selected),
# This next one should exercise the catch-all return
(['E', 'W'], defaults.IGNORE, ['I'], [], 'I101',
style_guide.Decision.Selected),
]
)
def test_more_specific_decision_for_logic(select, ignore, extend_select,