We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d32f24 commit 059ea70Copy full SHA for 059ea70
numpydoc/tests/test_docscrape.py
@@ -842,6 +842,46 @@ def test_plot_examples():
842
assert str(doc).count('plot::') == 1, str(doc)
843
844
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
868
869
+ **jkl**
870
871
872
873
+ :Returns:
874
875
+ **ABC** : DEF
876
877
878
879
+ **JKL**
880
881
882
+ ''')
883
884
885
def test_class_members():
886
887
class Dummy(object):
0 commit comments