We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001d6bb commit 704cba9Copy full SHA for 704cba9
tests/test_utilities.py
@@ -19,6 +19,11 @@ def class_method(self):
19
"""
20
return self
21
22
+ def class_method_oneline(self):
23
+ """One line docstring.
24
+ """
25
+ return self
26
+
27
def class_method_no_docstring(self):
28
29
@@ -42,6 +47,10 @@ def test_get_docstring(example_class):
42
47
utilities.get_docstring(example_class.class_method, remove_summary=True)
43
48
== "Third line of class method docstring. "
44
49
)
50
+ assert (
51
+ utilities.get_docstring(example_class.class_method_oneline, remove_summary=True)
52
+ == "One line docstring. "
53
+ )
45
54
assert (
46
55
utilities.get_docstring(
56
example_class.class_method, remove_newlines=False, remove_summary=True
0 commit comments