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 d800005 commit 7ad74d0Copy full SHA for 7ad74d0
cf/test/test_docstring.py
@@ -87,14 +87,21 @@ def test_docstring(self):
87
if name.startswith("__") and not inspect.isfunction(f):
88
continue
89
90
- if f.__doc__ is not None:
91
- self.assertNotIn(
92
- "{{",
93
- f.__doc__,
94
- f"\nCLASS: {klass}"
95
- f"\nMETHOD NAME: {name}"
96
- f"\nMETHOD: {f}",
97
- )
+ self.assertIsNotNone(
+ f.__doc__,
+ f"\nCLASS: {klass}"
+ f"\nMETHOD NAME: {name}"
+ f"\nMETHOD: {f}"
+ f"\n__doc__: {f.__doc__}",
+ )
+
98
+ self.assertNotIn(
99
+ "{{",
100
101
102
103
+ f"\nMETHOD: {f}",
104
105
106
def test_docstring_package(self):
107
string = f">>> f = {self.package}."
0 commit comments