summaryrefslogtreecommitdiff
path: root/tests/test_ext_napoleon_docstring.py
diff options
context:
space:
mode:
authorKeewis <keewis@posteo.de>2020-07-13 00:06:07 +0200
committerKeewis <keewis@posteo.de>2020-07-16 00:27:00 +0200
commit660b818636bcd5b29ef6b23d565f82ac7de99266 (patch)
tree4258e11275a0cdff7ed409ca5f3234deb6b2bb66 /tests/test_ext_napoleon_docstring.py
parent922054ed6fe0c3bf705c6988491606a3cdf66e81 (diff)
downloadsphinx-git-660b818636bcd5b29ef6b23d565f82ac7de99266.tar.gz
add type hints and location information
Diffstat (limited to 'tests/test_ext_napoleon_docstring.py')
-rw-r--r--tests/test_ext_napoleon_docstring.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py
index 18eddb72a..f7767065a 100644
--- a/tests/test_ext_napoleon_docstring.py
+++ b/tests/test_ext_napoleon_docstring.py
@@ -20,7 +20,7 @@ from sphinx.ext.napoleon import Config
from sphinx.ext.napoleon.docstring import GoogleDocstring, NumpyDocstring
from sphinx.ext.napoleon.docstring import (
_tokenize_type_spec,
- _recombine_sets,
+ _recombine_set_tokens,
_convert_numpy_type_spec,
_token_type
)
@@ -2051,7 +2051,7 @@ definition_after_normal_text : int
actual = _tokenize_type_spec(type_spec)
self.assertEqual(expected, actual)
- def test_recombine_sets(self):
+ def test_recombine_set_tokens(self):
type_tokens = (
["{", "1", ", ", "2", "}"],
["{", '"F"', ", ", '"C"', ", ", '"N"', "}"],
@@ -2075,10 +2075,10 @@ definition_after_normal_text : int
)
for tokens_, expected in zip(tokens, combined_tokens):
- actual = _recombine_sets(tokens_)
+ actual = _recombine_set_tokens(tokens_)
self.assertEqual(expected, actual)
- def test_recombine_sets_invalid(self):
+ def test_recombine_set_tokens_invalid(self):
type_tokens = (
["{", "1", ", ", "2"],
['"F"', ", ", '"C"', ", ", '"N"', "}"],
@@ -2102,7 +2102,7 @@ definition_after_normal_text : int
)
for tokens_, expected in zip(tokens, combined_tokens):
- actual = _recombine_sets(tokens_)
+ actual = _recombine_set_tokens(tokens_)
self.assertEqual(expected, actual)
def test_convert_numpy_type_spec(self):