summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorIsac Yoo <isac.yoo@buzzvil.com>2019-11-13 11:58:49 +0900
committerIsac Yoo <isac.yoo@buzzvil.com>2019-11-13 11:58:49 +0900
commit3b80b2e05a075e8de7149035643b2498e5a25c02 (patch)
treedf6faca9e3af8134f952a7ae31139abad8dea130 /tests/unit
parent705c16a2686ef561112854f180b7c79377049922 (diff)
downloadflake8-3b80b2e05a075e8de7149035643b2498e5a25c02.tar.gz
Remove redundant sample data
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_file_processor.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/unit/test_file_processor.py b/tests/unit/test_file_processor.py
index 9acd5ae..f38568c 100644
--- a/tests/unit/test_file_processor.py
+++ b/tests/unit/test_file_processor.py
@@ -76,16 +76,9 @@ def test_should_ignore_file(lines, expected, default_options):
assert file_processor.should_ignore_file() is expected
-@pytest.mark.parametrize('lines', [
- ['#!/usr/bin/python', '# flake8: noqa', 'a = 1'],
- ['#!/usr/bin/python', '# flake8:noqa', 'a = 1'],
- ['# flake8: noqa', '#!/usr/bin/python', 'a = 1'],
- ['# flake8:noqa', '#!/usr/bin/python', 'a = 1'],
- ['#!/usr/bin/python', 'a = 1', '# flake8: noqa'],
- ['#!/usr/bin/python', 'a = 1', '# flake8:noqa'],
-])
-def test_should_ignore_file_to_handle_disable_noqa(lines, default_options):
+def test_should_ignore_file_to_handle_disable_noqa(default_options):
"""Verify that we ignore a file if told to."""
+ lines = ['# flake8: noqa']
file_processor = processor.FileProcessor('-', default_options, lines)
assert file_processor.should_ignore_file() is True
default_options.disable_noqa = True