Allow noqa to apply to lines due to continuation

This commit is contained in:
Anthony Sottile 2020-03-17 22:12:56 -07:00
parent 8f9b4931b9
commit 28797a57d8
5 changed files with 122 additions and 30 deletions

View file

@ -15,7 +15,7 @@ EXPECTED_RESULT_PHYSICAL_LINE = (
0,
1,
'Expected Message',
PHYSICAL_LINE,
None,
)
@ -153,11 +153,10 @@ def test_line_check_results(plugin_target, len_results):
"""Test the FileChecker class handling results from line checks."""
file_checker = mock_file_checker_with_plugin(plugin_target)
# Results will be store in an internal array
# Results will be stored in an internal array
file_checker.run_physical_checks(PHYSICAL_LINE)
assert file_checker.results == [
EXPECTED_RESULT_PHYSICAL_LINE
] * len_results
expected = [EXPECTED_RESULT_PHYSICAL_LINE] * len_results
assert file_checker.results == expected
PLACEHOLDER_CODE = 'some_line = "of" * code'