diff options
Diffstat (limited to 'tests/test_ext_autodoc_autoattribute.py')
-rw-r--r-- | tests/test_ext_autodoc_autoattribute.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_ext_autodoc_autoattribute.py b/tests/test_ext_autodoc_autoattribute.py index 5e7220234..20317b8da 100644 --- a/tests/test_ext_autodoc_autoattribute.py +++ b/tests/test_ext_autodoc_autoattribute.py @@ -101,6 +101,17 @@ def test_autoattribute_instance_variable_in_alias(app): @pytest.mark.sphinx('html', testroot='ext-autodoc') +def test_autoattribute_instance_variable_without_comment(app): + actual = do_autodoc(app, 'attribute', 'target.instance_variable.Bar.attr4') + assert list(actual) == [ + '', + '.. py:attribute:: Bar.attr4', + ' :module: target.instance_variable', + '', + ] + + +@pytest.mark.sphinx('html', testroot='ext-autodoc') def test_autoattribute_slots_variable_list(app): actual = do_autodoc(app, 'attribute', 'target.slots.Foo.attr') assert list(actual) == [ |