New option --jobs to spawn multiple processes in parallel; closes #146

This commit is contained in:
Florent Xicluna 2014-04-27 00:22:50 +02:00
parent 0d15687282
commit 94b59d327e
4 changed files with 76 additions and 0 deletions

View file

@ -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()