Add some better comments for decision logic

This commit is contained in:
Ian Cordasco 2017-06-04 15:07:10 -05:00
parent e8c6a1e2f5
commit ff07ca3ed9
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
2 changed files with 28 additions and 1 deletions

View file

@ -162,7 +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
# This next one should exercise the catch-all return and yes, this is
# a *very* odd combination but users find much odder combinations
# anyway.
(['E', 'W'], defaults.IGNORE, ['I'], [], 'I101',
style_guide.Decision.Selected),
]