summaryrefslogtreecommitdiff
path: root/tests/test_ext_autodoc_autoclass.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-11-23 18:17:32 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-11-23 18:17:32 +0900
commitfae10db6ca6f9d5c7b0ffc0149ba9db3de314cae (patch)
treedb9aab77c2b28e556e583b3179916ae17de278a0 /tests/test_ext_autodoc_autoclass.py
parentfafe688cbfbd3a3f9d19fdc427e618c93f3c586d (diff)
parent259de307cac9312e7a2f107d42606185c3aa8426 (diff)
downloadsphinx-git-fae10db6ca6f9d5c7b0ffc0149ba9db3de314cae.tar.gz
Merge branch '4.x'
Diffstat (limited to 'tests/test_ext_autodoc_autoclass.py')
-rw-r--r--tests/test_ext_autodoc_autoclass.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_ext_autodoc_autoclass.py b/tests/test_ext_autodoc_autoclass.py
index 9c730f425..6f4e21060 100644
--- a/tests/test_ext_autodoc_autoclass.py
+++ b/tests/test_ext_autodoc_autoclass.py
@@ -407,6 +407,18 @@ def test_class_alias_having_doccomment(app):
]
+def test_class_alias_for_imported_object_having_doccomment(app):
+ actual = do_autodoc(app, 'class', 'target.classes.IntAlias')
+ assert list(actual) == [
+ '',
+ '.. py:attribute:: IntAlias',
+ ' :module: target.classes',
+ '',
+ ' docstring',
+ '',
+ ]
+
+
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_coroutine(app):
options = {"members": None}