mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Simplify conditoinal in decision logic
Add test to cover branch of decision logic we were not previously exercising
This commit is contained in:
parent
178092954d
commit
aefa79535f
2 changed files with 4 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue