MCPcopy Create free account
hub / github.com/PyCQA/flake8 / test_was_selected_selects_errors

Function test_was_selected_selects_errors

tests/unit/test_decision_engine.py:80–89  ·  view source on GitHub ↗

Verify we detect users explicitly selecting an error.

(select_list, extend_select, error_code)

Source from the content-addressed store, hash-verified

78 ),
79)
80def test_was_selected_selects_errors(select_list, extend_select, error_code):
81 """Verify we detect users explicitly selecting an error."""
82 decider = style_guide.DecisionEngine(
83 options=create_options(
84 select=select_list,
85 extend_select=extend_select,
86 ),
87 )
88
89 assert decider.was_selected(error_code) is style_guide.Selected.Explicitly
90
91
92def test_was_selected_implicitly_selects_errors():

Callers

nothing calls this directly

Calls 2

was_selectedMethod · 0.95
create_optionsFunction · 0.70

Tested by

no test coverage detected