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

Function test_was_ignored_ignores_errors

tests/unit/test_decision_engine.py:35–41  ·  view source on GitHub ↗

Verify we detect users explicitly ignoring an error.

(ignore_list, extend_ignore, error_code)

Source from the content-addressed store, hash-verified

33 ],
34)
35def test_was_ignored_ignores_errors(ignore_list, extend_ignore, error_code):
36 """Verify we detect users explicitly ignoring an error."""
37 decider = style_guide.DecisionEngine(
38 create_options(ignore=ignore_list, extend_ignore=extend_ignore),
39 )
40
41 assert decider.was_ignored(error_code) is style_guide.Ignored.Explicitly
42
43
44@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

was_ignoredMethod · 0.95
create_optionsFunction · 0.70

Tested by

no test coverage detected