Skip to content

Commit 704cba9

Browse files
committed
Exhaustive testing for docstring additions
Just because I'm now at 100% coverage of my added code in this PR!
1 parent 001d6bb commit 704cba9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_utilities.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ def class_method(self):
1919
"""
2020
return self
2121

22+
def class_method_oneline(self):
23+
"""One line docstring.
24+
"""
25+
return self
26+
2227
def class_method_no_docstring(self):
2328
return self
2429

@@ -42,6 +47,10 @@ def test_get_docstring(example_class):
4247
utilities.get_docstring(example_class.class_method, remove_summary=True)
4348
== "Third line of class method docstring. "
4449
)
50+
assert (
51+
utilities.get_docstring(example_class.class_method_oneline, remove_summary=True)
52+
== "One line docstring. "
53+
)
4554
assert (
4655
utilities.get_docstring(
4756
example_class.class_method, remove_newlines=False, remove_summary=True

0 commit comments

Comments
 (0)