Skip to content

Commit 8618729

Browse files
Fix test_run_pep8
use correct arguments
1 parent e89a5d9 commit 8618729

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/test_backend/test_workers.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,21 @@ def test_quick_doc():
9494

9595
def test_run_pep8():
9696
messages = workers.run_pep8(
97-
{'code': 'print("foo")\n', 'path': None})
97+
{'code': 'print("foo")\n', 'path': None,
98+
'max_line_length': 79, 'ignore_rules': []})
9899
assert len(messages) == 0
99100

100101
messages = workers.run_pep8(
101-
{'code': 'print("foo"); print("bar")\n', 'path': None})
102+
{'code': 'print("foo"); print("bar")\n', 'path': None,
103+
'max_line_length': 79, 'ignore_rules': []})
102104
assert len(messages) == 1
103105
assert messages[0][2] == 0
104106

105107

106-
def test_run_frosted():
108+
def test_run_pyflakes():
107109
messages = workers.run_pyflakes(
108-
{'code': None, 'path': __file__, 'encoding': 'utf-8'})
110+
{'code': None, 'path': __file__, 'encoding': 'utf-8',
111+
'max_line_length': 79, 'ignore_rules': []})
109112
assert len(messages) == 0
110113

111114
# OK

0 commit comments

Comments
 (0)