MCPcopy
hub / github.com/PyCQA/flake8 / test_noqa_line_for

Function test_noqa_line_for

tests/unit/test_file_processor.py:136–149  ·  view source on GitHub ↗

Verify we grab the correct line from the cached lines.

(default_options)

Source from the content-addressed store, hash-verified

134
135
136def test_noqa_line_for(default_options):
137 """Verify we grab the correct line from the cached lines."""
138 file_processor = processor.FileProcessor(
139 "-",
140 default_options,
141 lines=[
142 "Line 1\n",
143 "Line 2\n",
144 "Line 3\n",
145 ],
146 )
147
148 for i in range(1, 4):
149 assert file_processor.noqa_line_for(i) == f"Line {i}\n"
150
151
152def test_noqa_line_for_continuation(default_options):

Callers

nothing calls this directly

Calls 1

noqa_line_forMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…