Skip to content

Commit 059ea70

Browse files
committed
Test use_blockquotes config
1 parent 8d32f24 commit 059ea70

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

numpydoc/tests/test_docscrape.py

+40
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,46 @@ def test_plot_examples():
842842
assert str(doc).count('plot::') == 1, str(doc)
843843

844844

845+
def test_use_blockquotes():
846+
cfg = dict(use_blockquotes=True)
847+
doc = SphinxDocString("""
848+
Parameters
849+
----------
850+
abc : def
851+
ghi
852+
jkl
853+
mno
854+
855+
Returns
856+
-------
857+
ABC : DEF
858+
GHI
859+
JKL
860+
MNO
861+
""", config=cfg)
862+
line_by_line_compare(str(doc), '''
863+
:Parameters:
864+
865+
**abc** : def
866+
867+
ghi
868+
869+
**jkl**
870+
871+
mno
872+
873+
:Returns:
874+
875+
**ABC** : DEF
876+
877+
GHI
878+
879+
**JKL**
880+
881+
MNO
882+
''')
883+
884+
845885
def test_class_members():
846886

847887
class Dummy(object):

0 commit comments

Comments
 (0)