diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2017-06-04 14:51:01 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2017-06-04 14:51:01 -0500 |
| commit | e8c6a1e2f5aa98273474ada751613dbf7c39d813 (patch) | |
| tree | 34a6746719a8cf926d9cee154baf09d6875d75cd | |
| parent | 86e1fb6e64ecc76d8c94416a92686d56d0fe5978 (diff) | |
| download | flake8-e8c6a1e2f5aa98273474ada751613dbf7c39d813.tar.gz | |
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.
| -rw-r--r-- | tests/unit/test_decision_engine.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/test_decision_engine.py b/tests/unit/test_decision_engine.py index aad0176..58ce54c 100644 --- a/tests/unit/test_decision_engine.py +++ b/tests/unit/test_decision_engine.py @@ -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, |
