Skip to content

Commit

Permalink
Improve test case folder structure; tweak code style
Browse files Browse the repository at this point in the history
  • Loading branch information
jsh9 committed Aug 22, 2023
1 parent 5e24b6e commit d5457a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
File renamed without changes.
24 changes: 6 additions & 18 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,9 +1012,9 @@ def testNonAscii() -> None:
@pytest.mark.parametrize(
'filename, options, expectedViolations',
[
('edge_case_01.py', {'style': 'sphinx'}, []),
('01/case.py', {'style': 'sphinx'}, []),
(
'edge_case_02_syntax_error_in_type_hints.py',
'02/syntax_error_in_type_hints.py',
{'style': 'numpy'},
[
'DOC106: Function `func1`: The option `--arg-type-hints-in-signature` is '
Expand All @@ -1035,29 +1035,17 @@ def testNonAscii() -> None:
],
),
(
'edge_case_03_union_return_type.py',
'03/union_return_type.py',
{'style': 'google'},
[
'DOC203: Function `myFunc` return type(s) in docstring not consistent with '
"the return annotation. Return annotation types: ['str | bool | None']; "
"docstring return section types: ['str | bool | float']"
],
),
(
'04_backticks/google.py',
{'style': 'google'},
[],
),
(
'04_backticks/numpy.py',
{'style': 'numpy'},
[],
),
(
'04_backticks/numpy.py',
{'style': 'numpy'},
[],
),
('04_backticks/google.py', {'style': 'google'}, []),
('04_backticks/numpy.py', {'style': 'numpy'}, []),
('04_backticks/numpy.py', {'style': 'numpy'}, []),
('05_escape_char/google.py', {'style': 'google'}, []),
('05_escape_char/numpy.py', {'style': 'numpy'}, []),
('05_escape_char/sphinx.py', {'style': 'sphinx'}, []),
Expand Down

0 comments on commit d5457a8

Please sign in to comment.