Verify we grab the correct line from the cached lines.
(default_options)
| 134 | |
| 135 | |
| 136 | def 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 | |
| 152 | def test_noqa_line_for_continuation(default_options): |
nothing calls this directly
no test coverage detected
searching dependent graphs…