summaryrefslogtreecommitdiff
path: root/tests/test_ext_napoleon_docstring.py
diff options
context:
space:
mode:
authorKeewis <keewis@posteo.de>2020-07-21 12:26:28 +0200
committerKeewis <keewis@posteo.de>2020-07-21 12:26:28 +0200
commit9b425606e7be92c048e1b08b41562c296fadc56c (patch)
treecc03d9fdf11d5dd8b515b6347b51409cadb140fc /tests/test_ext_napoleon_docstring.py
parent274d9fe4f98d98c604c0e9bf0a4b49ceb62d523b (diff)
downloadsphinx-git-9b425606e7be92c048e1b08b41562c296fadc56c.tar.gz
support pandas-style default spec by postprocessing tokens
Diffstat (limited to 'tests/test_ext_napoleon_docstring.py')
-rw-r--r--tests/test_ext_napoleon_docstring.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py
index 2b1ac93aa..64fce5aa4 100644
--- a/tests/test_ext_napoleon_docstring.py
+++ b/tests/test_ext_napoleon_docstring.py
@@ -2013,6 +2013,7 @@ definition_after_normal_text : int
"int or float or None, optional",
'{"F", "C", "N"}',
"{'F', 'C', 'N'}, default: 'F'",
+ "{'F', 'C', 'N or C'}, default 'F'",
'"ma{icious"',
r"'with \'quotes\''",
)
@@ -2022,6 +2023,7 @@ definition_after_normal_text : int
["int", " or ", "float", " or ", "None", ", ", "optional"],
["{", '"F"', ", ", '"C"', ", ", '"N"', "}"],
["{", "'F'", ", ", "'C'", ", ", "'N'", "}", ", ", "default", ": ", "'F'"],
+ ["{", "'F'", ", ", "'C'", ", ", "'N or C'", "}", ", ", "default", " ", "'F'"],
['"ma{icious"'],
[r"'with \'quotes\''"],
)