diff options
author | Keewis <keewis@posteo.de> | 2020-08-18 16:01:52 +0200 |
---|---|---|
committer | Keewis <keewis@posteo.de> | 2020-08-18 16:01:52 +0200 |
commit | 439f75afd256ae259a72e39d1cf0e31711b94a85 (patch) | |
tree | 00eb8c37e875e9521d9f519d606485879dadd7db | |
parent | 3c24021972b972fbfc282ed1772ff098f2b835b2 (diff) | |
download | sphinx-git-439f75afd256ae259a72e39d1cf0e31711b94a85.tar.gz |
enable preprocessing in the tests
-rw-r--r-- | tests/test_ext_napoleon_docstring.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py index 538227514..da456e4a2 100644 --- a/tests/test_ext_napoleon_docstring.py +++ b/tests/test_ext_napoleon_docstring.py @@ -1543,6 +1543,7 @@ arg_ : type config = Config( napoleon_use_param=True, napoleon_use_rtype=True, + napoleon_preprocess_types=True, napoleon_type_aliases=translations, ) actual = str(NumpyDocstring(docstring, config)) @@ -1566,7 +1567,7 @@ arg_ : type "scalar": ":term:`scalar`", "array-like": ":class:`array-like <numpy.ndarray>`", } - config = Config(napoleon_type_aliases=translations) + config = Config(napoleon_type_aliases=translations, napoleon_preprocess_types=True) app = mock.Mock() actual = str(NumpyDocstring(docstring, config, app, "method")) self.assertEqual(expected, actual) @@ -1779,7 +1780,7 @@ Example Function "CustomError": "package.CustomError", "AnotherError": ":py:exc:`~package.AnotherError`", } - config = Config(napoleon_type_aliases=translations) + config = Config(napoleon_type_aliases=translations, napoleon_preprocess_types=True) app = mock.Mock() actual = str(NumpyDocstring(docstring, config, app, "method")) self.assertEqual(expected, actual) |