diff options
| author | Sergey B Kirpichev <skirpichev@gmail.com> | 2017-10-24 13:26:32 +0300 |
|---|---|---|
| committer | Sergey B Kirpichev <skirpichev@gmail.com> | 2018-01-13 00:19:19 +0300 |
| commit | b1c100ca3b038f930bb55853c96ee29c782d2015 (patch) | |
| tree | 50c015c321d121ca0f2893ababdd72973e9c550e /tests/test_ext_autodoc.py | |
| parent | 695b9f9e18fcf2d4312e9d37a89677250180bc35 (diff) | |
| download | sphinx-git-b1c100ca3b038f930bb55853c96ee29c782d2015.tar.gz | |
autodoc: make full reference for classes, aliased with "alias of"
We do this here only if class belongs to the different module.
Closes sphinx-doc/sphinx#2437
Diffstat (limited to 'tests/test_ext_autodoc.py')
| -rw-r--r-- | tests/test_ext_autodoc.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py index e7057df0f..7a9666792 100644 --- a/tests/test_ext_autodoc.py +++ b/tests/test_ext_autodoc.py @@ -22,3 +22,13 @@ def test_autodoc(app, status, warning): assert isinstance(content[3], addnodes.desc) assert content[3][0].astext() == 'autodoc_dummy_module.test' assert content[3][1].astext() == 'Dummy function using dummy.*' + + # issue sphinx-doc/sphinx#2437 + assert content[11][-1].astext() == """Dummy class Bar with alias. + + + +my_name + +alias of bug2437.autodoc_dummy_foo.Foo""" + assert warning.getvalue() == '' |
