mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 12:16:53 +00:00
Update test_violation.py
Added tests to check if long error codes are correctly identified.
This commit is contained in:
parent
0ac337608b
commit
37964dbd84
1 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ from flake8 import style_guide
|
|||
('E111', 'a = 1 # noqa - We do not care', True),
|
||||
('E111', 'a = 1 # noqa: We do not care', True),
|
||||
('E111', 'a = 1 # noqa:We do not care', True),
|
||||
('ABC123', 'a = 1 # noqa: ABC123', True),
|
||||
('E111', 'a = 1 # noqa: ABC123', False),
|
||||
('ABC123', 'a = 1 # noqa: ABC124', False),
|
||||
])
|
||||
def test_is_inline_ignored(error_code, physical_line, expected_result):
|
||||
"""Verify that we detect inline usage of ``# noqa``."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue