mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-14 00:14:46 +00:00
Fix the test suite
This commit is contained in:
parent
f40cf8e030
commit
573a217d6c
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class TestEngine(unittest.TestCase):
|
||||||
m = mock.Mock()
|
m = mock.Mock()
|
||||||
with mock.patch('flake8.engine.StyleGuide') as StyleGuide:
|
with mock.patch('flake8.engine.StyleGuide') as StyleGuide:
|
||||||
with mock.patch('flake8.engine.get_parser') as get_parser:
|
with mock.patch('flake8.engine.get_parser') as get_parser:
|
||||||
StyleGuide.return_value.options.jobs = 42
|
StyleGuide.return_value.options.jobs = '42'
|
||||||
get_parser.return_value = (m, [])
|
get_parser.return_value = (m, [])
|
||||||
engine.get_style_guide(foo='bar')
|
engine.get_style_guide(foo='bar')
|
||||||
get_parser.assert_called_once_with()
|
get_parser.assert_called_once_with()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue