generated from jCloud/repository-template
style: ensure trailing commas in multi-line statements
This commit is contained in:
30 files changed
+1778
-1774
No files matched your search
@@ -18,7 +18,7 @@ from jcloud_docsgen.cli.cli import create_argument_parser
|
||||
@pytest.mark.parametrize('lang', [
|
||||
'javascript',
|
||||
'Python',
|
||||
'PYTHON'
|
||||
'PYTHON',
|
||||
])
|
||||
def test_language_error(lang):
|
||||
parser = create_argument_parser()
|
||||
@@ -27,7 +27,7 @@ def test_language_error(lang):
|
||||
parser.parse_args([lang])
|
||||
|
||||
@pytest.mark.parametrize('lang', [
|
||||
'python'
|
||||
'python',
|
||||
])
|
||||
def test_language_success(lang):
|
||||
parser = create_argument_parser()
|
||||
|
||||
@@ -33,8 +33,8 @@ from jcloud_docsgen.core.python import (
|
||||
docstring = False,
|
||||
bases = False,
|
||||
decorators = False,
|
||||
class_body = False
|
||||
)
|
||||
class_body = False,
|
||||
),
|
||||
),
|
||||
(
|
||||
[],
|
||||
@@ -48,8 +48,8 @@ from jcloud_docsgen.core.python import (
|
||||
docstring = False,
|
||||
bases = False,
|
||||
decorators = False,
|
||||
class_body = False
|
||||
)
|
||||
class_body = False,
|
||||
),
|
||||
),
|
||||
(
|
||||
['signature'],
|
||||
@@ -63,8 +63,8 @@ from jcloud_docsgen.core.python import (
|
||||
docstring = False,
|
||||
bases = False,
|
||||
decorators = False,
|
||||
class_body = False
|
||||
)
|
||||
class_body = False,
|
||||
),
|
||||
),
|
||||
(
|
||||
['signature'],
|
||||
@@ -78,13 +78,13 @@ from jcloud_docsgen.core.python import (
|
||||
docstring = False,
|
||||
bases = False,
|
||||
decorators = False,
|
||||
class_body = False
|
||||
)
|
||||
class_body = False,
|
||||
),
|
||||
),
|
||||
(
|
||||
None,
|
||||
[],
|
||||
PythonDefinitionDocumentationIncludeSections()
|
||||
PythonDefinitionDocumentationIncludeSections(),
|
||||
),
|
||||
(
|
||||
['signature', 'exceptions', 'bases', 'class_body'],
|
||||
@@ -98,8 +98,8 @@ from jcloud_docsgen.core.python import (
|
||||
docstring = False,
|
||||
bases = False,
|
||||
decorators = False,
|
||||
class_body = True
|
||||
)
|
||||
class_body = True,
|
||||
),
|
||||
),
|
||||
(
|
||||
None,
|
||||
@@ -113,8 +113,8 @@ from jcloud_docsgen.core.python import (
|
||||
docstring = False,
|
||||
bases = True,
|
||||
decorators = True,
|
||||
class_body = True
|
||||
)
|
||||
class_body = True,
|
||||
),
|
||||
)
|
||||
])
|
||||
def test_parse_sections_list(include, exclude, expected):
|
||||
@@ -127,7 +127,7 @@ def test_sections_error():
|
||||
parser.parse_args([
|
||||
'python',
|
||||
'-s',
|
||||
'param' # correct: `params`
|
||||
'param', # correct: `params`
|
||||
])
|
||||
|
||||
with pytest.raises(SystemExit):
|
||||
@@ -135,7 +135,7 @@ def test_sections_error():
|
||||
'python',
|
||||
'-s',
|
||||
'params',
|
||||
'docstrng' # correct: `docstring`
|
||||
'docstrng', # correct: `docstring`
|
||||
])
|
||||
|
||||
def test_sections_success():
|
||||
@@ -144,13 +144,13 @@ def test_sections_success():
|
||||
parser.parse_args([
|
||||
'python',
|
||||
'-s',
|
||||
'params'
|
||||
'params',
|
||||
])
|
||||
parser.parse_args([
|
||||
'python',
|
||||
'-s',
|
||||
'params',
|
||||
'docstring'
|
||||
'docstring',
|
||||
])
|
||||
|
||||
def test_docs_generation(expectdir):
|
||||
@@ -164,5 +164,5 @@ def test_docs_generation(expectdir):
|
||||
'docstring',
|
||||
'-HTo',
|
||||
str(output_dir),
|
||||
str(input_dir)
|
||||
str(input_dir),
|
||||
])
|
||||
Reference in new issue
Block a user