mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 13:36:54 +00:00
New option --jobs to spawn multiple processes in parallel; closes #146
This commit is contained in:
parent
0d15687282
commit
94b59d327e
4 changed files with 76 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ class TestEngine(unittest.TestCase):
|
|||
m = mock.Mock()
|
||||
with mock.patch('flake8.engine.StyleGuide') as StyleGuide:
|
||||
with mock.patch('flake8.engine.get_parser') as get_parser:
|
||||
StyleGuide.return_value.options.jobs = 42
|
||||
get_parser.return_value = (m, [])
|
||||
engine.get_style_guide(foo='bar')
|
||||
get_parser.assert_called_once_with()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue