mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
use the dedent function imported at module-level
This commit is contained in:
parent
f30c0cb9f6
commit
4fc22cd0c4
@ -2153,8 +2153,7 @@ definition_after_normal_text : int
|
|||||||
self.assertEqual(expected, actual)
|
self.assertEqual(expected, actual)
|
||||||
|
|
||||||
def test_parameter_types(self):
|
def test_parameter_types(self):
|
||||||
import textwrap
|
docstring = dedent("""\
|
||||||
docstring = textwrap.dedent("""\
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
param1 : DataFrame
|
param1 : DataFrame
|
||||||
@ -2168,7 +2167,7 @@ definition_after_normal_text : int
|
|||||||
param5 : {"F", "C", "N"}, optional
|
param5 : {"F", "C", "N"}, optional
|
||||||
a optional parameter with fixed values
|
a optional parameter with fixed values
|
||||||
""")
|
""")
|
||||||
expected = textwrap.dedent("""\
|
expected = dedent("""\
|
||||||
:param param1: the data to work on
|
:param param1: the data to work on
|
||||||
:type param1: DataFrame
|
:type param1: DataFrame
|
||||||
:param param2: a parameter with different types
|
:param param2: a parameter with different types
|
||||||
|
Loading…
Reference in New Issue
Block a user