Skip to content

Commit 6405e30

Browse files
committed
include additional test case
1 parent bf98188 commit 6405e30

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_utils.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,17 @@ class MultiquoteMultiline:
313313
class_variables['hi'] = {'comment': '"Hello there""'}
314314
self.assertEqual(get_class_variables(MultiquoteMultiline), class_variables)
315315

316+
def test_multiline_argument(self):
317+
class MultilineArgument:
318+
bar: str = (
319+
"This is a multiline argument"
320+
" that should not be included in the docstring"
321+
)
322+
("""biz baz""")
323+
324+
class_variables = {"bar": {"comment": "biz baz"}}
325+
self.assertEqual(get_class_variables(MultilineArgument), class_variables)
326+
316327
def test_single_quote_multiline(self):
317328
class SingleQuoteMultiline:
318329
bar: int = 0

0 commit comments

Comments
 (0)