Skip to content

Commit 3503a89

Browse files
committed
Linting
1 parent 6d10400 commit 3503a89

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

repo_helper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ yapf_exclude:
4848
- "*.pyi"
4949

5050
manifest_additional:
51-
- "include domdf_python_tools/google-10000-english-no-swears.txt"
51+
- "include domdf_python_tools/google-10000-english-no-swears.txt"

tests/test_doctools.py

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
# stdlib
1010
import math
1111

12-
# this package
12+
# 3rd party
1313
import pytest
1414

15+
# this package
1516
from domdf_python_tools import doctools
1617

1718
# TODO: test sphinxification of docstrings
@@ -166,21 +167,24 @@ def function_in_class_with_same_args(self, a, b, c, d):
166167
return
167168

168169

169-
@pytest.mark.parametrize("docstring, expects", [
170-
("\t\t\t ", ''),
171-
("\t\t\t Spam", "Spam"),
172-
("\t\t\t Spam \t\t\t", "Spam \t\t\t"),
173-
("\t\t\t Spam\n \t\t\t", "Spam\n"),
174-
(" \t\t\t", ''),
175-
(" \t\t\tSpam", "Spam"),
176-
(" \t\t\tSpam\t\t\t ", "Spam\t\t\t "),
177-
(" \t\t\tSpam\n\t\t\t ", "Spam\n"),
178-
('', ''),
179-
(None, ''),
180-
(False, ''),
181-
(0, ''),
182-
([], ''),
183-
])
170+
@pytest.mark.parametrize(
171+
"docstring, expects",
172+
[
173+
("\t\t\t ", ''),
174+
("\t\t\t Spam", "Spam"),
175+
("\t\t\t Spam \t\t\t", "Spam \t\t\t"),
176+
("\t\t\t Spam\n \t\t\t", "Spam\n"),
177+
(" \t\t\t", ''),
178+
(" \t\t\tSpam", "Spam"),
179+
(" \t\t\tSpam\t\t\t ", "Spam\t\t\t "),
180+
(" \t\t\tSpam\n\t\t\t ", "Spam\n"),
181+
('', ''),
182+
(None, ''),
183+
(False, ''),
184+
(0, ''),
185+
([], ''),
186+
]
187+
)
184188
def test_deindent_string(docstring, expects):
185189
assert doctools.deindent_string(docstring) == expects
186190

0 commit comments

Comments
 (0)