use the dedent function imported at module-level

This commit is contained in:
Keewis 2020-07-12 23:14:13 +02:00
parent f30c0cb9f6
commit 4fc22cd0c4

View File

@ -2153,8 +2153,7 @@ definition_after_normal_text : int
self.assertEqual(expected, actual)
def test_parameter_types(self):
import textwrap
docstring = textwrap.dedent("""\
docstring = dedent("""\
Parameters
----------
param1 : DataFrame
@ -2168,7 +2167,7 @@ definition_after_normal_text : int
param5 : {"F", "C", "N"}, optional
a optional parameter with fixed values
""")
expected = textwrap.dedent("""\
expected = dedent("""\
:param param1: the data to work on
:type param1: DataFrame
:param param2: a parameter with different types