mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 23:54:17 +00:00
Parse --jobs as a custom argparse type. Fixes #567
This commit is contained in:
parent
666be736e0
commit
45573570cf
4 changed files with 56 additions and 10 deletions
|
|
@ -5,13 +5,14 @@ import mock
|
|||
import pytest
|
||||
|
||||
from flake8 import checker
|
||||
from flake8.main.options import JobsArgument
|
||||
|
||||
|
||||
def style_guide_mock():
|
||||
"""Create a mock StyleGuide object."""
|
||||
return mock.MagicMock(**{
|
||||
'options.diff': False,
|
||||
'options.jobs': '4',
|
||||
'options.jobs': JobsArgument("4"),
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue