Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Hilton-Balfe <50501825+Gobot1234@users.noreply.github.com>2022-01-15 16:59:25 +0300
committerJames Hilton-Balfe <50501825+Gobot1234@users.noreply.github.com>2022-01-15 16:59:25 +0300
commitdc60b1db76b5fb18c5cb84c03133a14231c7c65c (patch)
treedcb49406b03e33fe404285cd7011d8a84faa77e4
parent4b8bb7b3019db18726bcd5dbeac60e1897f3e9c0 (diff)
Add a test for this
-rw-r--r--tests/test_ext_napoleon_docstring.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py
index acf000178..71b029154 100644
--- a/tests/test_ext_napoleon_docstring.py
+++ b/tests/test_ext_napoleon_docstring.py
@@ -263,6 +263,19 @@ class GoogleDocstringTest(BaseDocstringTest):
:returns: Extended
description of return value
"""
+ ),
+ (
+ """
+ Single line summary
+
+ Returns:
+ Extended
+ """,
+ """
+ Single line summary
+
+ :returns: Extended
+ """
), (
"""
Single line summary
@@ -1118,7 +1131,7 @@ Methods:
.. method:: func(i, j)
:noindex:
-
+
description
""" # NOQA
config = Config()