summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeewis <keewis@posteo.de>2020-08-04 11:36:15 +0200
committerKeewis <keewis@posteo.de>2020-08-04 11:36:15 +0200
commit2c75aaaa5452ab093e71138b6f864859cfb08554 (patch)
tree7c7e19acd1168bf16d022352f970c08657f18c13
parent278a057104a26e33b6a986f3a1184482b90cdbbd (diff)
downloadsphinx-git-2c75aaaa5452ab093e71138b6f864859cfb08554.tar.gz
move the GoogleDocstring test to the appropriate test class
-rw-r--r--tests/test_ext_napoleon_docstring.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py
index 35e2f36bd..14929bc0d 100644
--- a/tests/test_ext_napoleon_docstring.py
+++ b/tests/test_ext_napoleon_docstring.py
@@ -1078,6 +1078,22 @@ Methods:
options={'noindex': True}))
self.assertEqual(expected, actual)
+ def test_keywords_with_types(self):
+ docstring = """\
+Do as you please
+
+Keyword Args:
+ gotham_is_yours (None): shall interfere.
+"""
+ actual = str(GoogleDocstring(docstring))
+ expected = """\
+Do as you please
+
+:keyword gotham_is_yours: shall interfere.
+:kwtype gotham_is_yours: None
+"""
+ self.assertEqual(expected, actual)
+
class NumpyDocstringTest(BaseDocstringTest):
docstrings = [(
@@ -2191,22 +2207,6 @@ definition_after_normal_text : int
actual = str(NumpyDocstring(docstring, config))
self.assertEqual(expected, actual)
- def test_keywords_with_types(self):
- docstring = """\
-Do as you please
-
-Keyword Args:
- gotham_is_yours (None): shall interfere.
-"""
- actual = str(GoogleDocstring(docstring))
- expected = """\
-Do as you please
-
-:keyword gotham_is_yours: shall interfere.
-:kwtype gotham_is_yours: None
-"""
- self.assertEqual(expected, actual)
-
@contextmanager
def warns(warning, match):
match_re = re.compile(match)