diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-05 23:03:35 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-05 23:03:35 +0900 |
commit | 231d75b0d07376ba2613976e12214d128cb80f2a (patch) | |
tree | ea0ce157931363621a04c965d615c68e602c5d27 /tests/test_autodoc.py | |
parent | 44db2b5da2191dfdeb9a896f9eeedd9650cbbfe0 (diff) | |
parent | 223f92b5c1b41a4ebca92dc499b3351c0ebd7beb (diff) | |
download | sphinx-git-231d75b0d07376ba2613976e12214d128cb80f2a.tar.gz |
Merge branch '2.x' into 3.0.x
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index fc56a7f72..11c3503be 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1414,6 +1414,19 @@ def test_partialmethod(app): @pytest.mark.sphinx('html', testroot='ext-autodoc') +def test_wrappedfunction(app): + actual = do_autodoc(app, 'function', 'target.wrappedfunction.slow_function') + assert list(actual) == [ + '', + '.. py:function:: slow_function(message, timeout)', + ' :module: target.wrappedfunction', + '', + ' This function is slow.', + ' ', + ] + + +@pytest.mark.sphinx('html', testroot='ext-autodoc') def test_partialmethod_undoc_members(app): expected = [ '', |