summaryrefslogtreecommitdiff
path: root/tests/test_ext_autodoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-08-03 02:30:25 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-08-03 02:30:30 +0900
commitc0157cf074a813979c46f68e3bdcfa248e0bf16e (patch)
tree356983749fb95944324d76696de7fb151e0f79be /tests/test_ext_autodoc.py
parent57af8288826f9a37cb3ba3008fb36278ecbae81f (diff)
downloadsphinx-git-c0157cf074a813979c46f68e3bdcfa248e0bf16e.tar.gz
refactor: test: Rename target.enum to target.enums
Using "enum" for module name bothers me on debugging errors because it sometimes raises ImportError.
Diffstat (limited to 'tests/test_ext_autodoc.py')
-rw-r--r--tests/test_ext_autodoc.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py
index 8fa61e044..d6f973f49 100644
--- a/tests/test_ext_autodoc.py
+++ b/tests/test_ext_autodoc.py
@@ -1176,44 +1176,44 @@ def test_slots(app):
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_enum_class(app):
options = {"members": None}
- actual = do_autodoc(app, 'class', 'target.enum.EnumCls', options)
+ actual = do_autodoc(app, 'class', 'target.enums.EnumCls', options)
assert list(actual) == [
'',
'.. py:class:: EnumCls(value)',
- ' :module: target.enum',
+ ' :module: target.enums',
'',
' this is enum class',
'',
'',
' .. py:method:: EnumCls.say_goodbye()',
- ' :module: target.enum',
+ ' :module: target.enums',
' :classmethod:',
'',
' a classmethod says good-bye to you.',
'',
'',
' .. py:method:: EnumCls.say_hello()',
- ' :module: target.enum',
+ ' :module: target.enums',
'',
' a method says hello to you.',
'',
'',
' .. py:attribute:: EnumCls.val1',
- ' :module: target.enum',
+ ' :module: target.enums',
' :value: 12',
'',
' doc for val1',
'',
'',
' .. py:attribute:: EnumCls.val2',
- ' :module: target.enum',
+ ' :module: target.enums',
' :value: 23',
'',
' doc for val2',
'',
'',
' .. py:attribute:: EnumCls.val3',
- ' :module: target.enum',
+ ' :module: target.enums',
' :value: 34',
'',
' doc for val3',
@@ -1221,11 +1221,11 @@ def test_enum_class(app):
]
# checks for an attribute of EnumClass
- actual = do_autodoc(app, 'attribute', 'target.enum.EnumCls.val1')
+ actual = do_autodoc(app, 'attribute', 'target.enums.EnumCls.val1')
assert list(actual) == [
'',
'.. py:attribute:: EnumCls.val1',
- ' :module: target.enum',
+ ' :module: target.enums',
' :value: 12',
'',
' doc for val1',