mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
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:
parent
86e1fb6e64
commit
e8c6a1e2f5
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue