diff options
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index cbbdbb787..aedaa75cf 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1112,8 +1112,7 @@ def test_slots(app): @pytest.mark.sphinx('html', testroot='ext-autodoc') def test_enum_class(app): - options = {"members": None, - "undoc-members": True} + options = {"members": None} actual = do_autodoc(app, 'class', 'target.enum.EnumCls', options) assert list(actual) == [ '', @@ -1123,6 +1122,13 @@ def test_enum_class(app): ' this is enum class', '', '', + ' .. py:method:: EnumCls.say_goodbye()', + ' :module: target.enum', + ' :classmethod:', + '', + ' a classmethod says good-bye to you.', + '', + '', ' .. py:method:: EnumCls.say_hello()', ' :module: target.enum', '', @@ -1149,11 +1155,6 @@ def test_enum_class(app): '', ' doc for val3', '', - '', - ' .. py:attribute:: EnumCls.val4', - ' :module: target.enum', - ' :value: 34', - '' ] # checks for an attribute of EnumClass |