summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-09-07 23:31:04 -0700
committerAnthony Sottile <asottile@umich.edu>2019-09-07 23:31:43 -0700
commit92fbdda253319b958398593d2166bf3eb54d7192 (patch)
tree2e12a21977d9d4b17b52dcf3e7f69d3dd07354a0 /tests
parentae2f38fbeb9af804f11b67d0e74fb2d42840a7bb (diff)
downloadflake8-92fbdda253319b958398593d2166bf3eb54d7192.tar.gz
Add type annotations for flake8.processor
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_file_processor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/test_file_processor.py b/tests/unit/test_file_processor.py
index 84b051c..c3ae021 100644
--- a/tests/unit/test_file_processor.py
+++ b/tests/unit/test_file_processor.py
@@ -196,7 +196,7 @@ def test_keyword_arguments_for_does_not_handle_attribute_errors(
])
with pytest.raises(AttributeError):
- file_processor.keyword_arguments_for(['fake'])
+ file_processor.keyword_arguments_for({'fake': True})
@pytest.mark.parametrize('unsplit_line, expected_lines', [
@@ -211,7 +211,8 @@ def test_split_line(unsplit_line, expected_lines, default_options):
'Line 1',
])
- actual_lines = list(file_processor.split_line((1, unsplit_line)))
+ token = (1, unsplit_line, (0, 0), (0, 0), '')
+ actual_lines = list(file_processor.split_line(token))
assert expected_lines == actual_lines
assert len(actual_lines) == file_processor.line_number