diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-26 01:25:35 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-26 01:25:35 +0900 |
commit | dcd8f41a77353468c6edbfac3e785aa94a5b632d (patch) | |
tree | ad220489fbef1edd8ae4680acb03fbbd4b262204 /tests/test_autodoc.py | |
parent | 045630ec85b8d617cd0a7f8b2f96379e68d3840c (diff) | |
download | sphinx-git-dcd8f41a77353468c6edbfac3e785aa94a5b632d.tar.gz |
Add testcase for instance variables without defaults
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index 05cc8bc74..b7c645be8 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1399,7 +1399,7 @@ def test_autodoc_typed_instance_variables(app): '.. py:module:: target.typed_vars', '', '', - '.. py:class:: Class', + '.. py:class:: Class()', ' :module: target.typed_vars', '', ' ', @@ -1412,6 +1412,20 @@ def test_autodoc_typed_instance_variables(app): ' :module: target.typed_vars', ' :annotation: = None', ' ', + ' ', + ' .. py:attribute:: Class.attr3', + ' :module: target.typed_vars', + ' :annotation: = None', + ' ', + ' attr3', + ' ', + ' ', + ' .. py:attribute:: Class.attr4', + ' :module: target.typed_vars', + ' :annotation: = None', + ' ', + ' attr4', + ' ', '', '.. py:data:: attr1', ' :module: target.typed_vars', |