summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2017-05-27 20:34:04 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2017-05-27 20:34:04 -0500
commitaefa79535f985bd19c375332abea6f3712815a0a (patch)
treec993ce693654e89d4efda3375a1fa970fca90978 /tests
parent178092954d2b6d5293f6211bd4e2f9f37bb8c525 (diff)
downloadflake8-aefa79535f985bd19c375332abea6f3712815a0a.tar.gz
Simplify conditoinal in decision logic
Add test to cover branch of decision logic we were not previously exercising
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_style_guide.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/test_style_guide.py b/tests/unit/test_style_guide.py
index 7ae77d7..5c24048 100644
--- a/tests/unit/test_style_guide.py
+++ b/tests/unit/test_style_guide.py
@@ -169,6 +169,8 @@ def test_should_report_error(select_list, ignore_list, error_code, expected):
(['E2'], ['E21'], [], [], 'E212', style_guide.Decision.Ignored),
(['F', 'W'], ['C90'], ['I1'], [], 'C901',
style_guide.Decision.Ignored),
+ (['E', 'W'], ['C'], [], [], 'E131',
+ style_guide.Decision.Selected),
(defaults.SELECT, defaults.IGNORE, [], ['I'], 'I101',
style_guide.Decision.Selected),
(defaults.SELECT, defaults.IGNORE, ['G'], ['I'], 'G101',