summaryrefslogtreecommitdiff
path: root/tests/test_ext_autodoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_ext_autodoc.py')
-rw-r--r--tests/test_ext_autodoc.py54
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py
index 99d56b27b..6ac42a595 100644
--- a/tests/test_ext_autodoc.py
+++ b/tests/test_ext_autodoc.py
@@ -532,7 +532,7 @@ def test_autodoc_attributes(app):
' :synopsis: Synopsis',
' :platform: Platform',
' :deprecated:',
- ''
+ '',
]
@@ -552,7 +552,7 @@ def test_autodoc_members(app):
' .. py:attribute:: Base.inheritedattr',
' .. py:method:: Base.inheritedclassmeth()',
' .. py:method:: Base.inheritedmeth()',
- ' .. py:method:: Base.inheritedstaticmeth(cls)'
+ ' .. py:method:: Base.inheritedstaticmeth(cls)',
]
# default specific-members
@@ -561,7 +561,7 @@ def test_autodoc_members(app):
assert list(filter(lambda l: '::' in l, actual)) == [
'.. py:class:: Base()',
' .. py:method:: Base.inheritedmeth()',
- ' .. py:method:: Base.inheritedstaticmeth(cls)'
+ ' .. py:method:: Base.inheritedstaticmeth(cls)',
]
# ALL-members override autodoc_default_options
@@ -573,7 +573,7 @@ def test_autodoc_members(app):
' .. py:attribute:: Base.inheritedattr',
' .. py:method:: Base.inheritedclassmeth()',
' .. py:method:: Base.inheritedmeth()',
- ' .. py:method:: Base.inheritedstaticmeth(cls)'
+ ' .. py:method:: Base.inheritedstaticmeth(cls)',
]
# members override autodoc_default_options
@@ -592,7 +592,7 @@ def test_autodoc_members(app):
assert list(filter(lambda l: '::' in l, actual)) == [
'.. py:class:: Base()',
' .. py:method:: Base.inheritedmeth()',
- ' .. py:method:: Base.inheritedstaticmeth(cls)'
+ ' .. py:method:: Base.inheritedstaticmeth(cls)',
]
@@ -604,7 +604,7 @@ def test_autodoc_exclude_members(app):
assert list(filter(lambda l: '::' in l, actual)) == [
'.. py:class:: Base()',
' .. py:attribute:: Base.inheritedattr',
- ' .. py:method:: Base.inheritedclassmeth()'
+ ' .. py:method:: Base.inheritedclassmeth()',
]
# members vs exclude-members
@@ -622,7 +622,7 @@ def test_autodoc_exclude_members(app):
assert list(filter(lambda l: '::' in l, actual)) == [
'.. py:class:: Base()',
' .. py:attribute:: Base.inheritedattr',
- ' .. py:method:: Base.inheritedclassmeth()'
+ ' .. py:method:: Base.inheritedclassmeth()',
]
# exclude-members overrides autodoc_default_options
@@ -634,7 +634,7 @@ def test_autodoc_exclude_members(app):
'.. py:class:: Base()',
' .. py:attribute:: Base.inheritedattr',
' .. py:method:: Base.inheritedclassmeth()',
- ' .. py:method:: Base.inheritedstaticmeth(cls)'
+ ' .. py:method:: Base.inheritedstaticmeth(cls)',
]
# exclude-members extends autodoc_default_options
@@ -668,7 +668,7 @@ def test_autodoc_exclude_members(app):
' .. py:attribute:: Base.inheritedattr',
' .. py:method:: Base.inheritedclassmeth()',
' .. py:method:: Base.inheritedmeth()',
- ' .. py:method:: Base.inheritedstaticmeth(cls)'
+ ' .. py:method:: Base.inheritedstaticmeth(cls)',
]
@@ -692,7 +692,7 @@ def test_autodoc_undoc_members(app):
' .. py:attribute:: Class.skipattr',
' .. py:method:: Class.skipmeth()',
' .. py:attribute:: Class.udocattr',
- ' .. py:method:: Class.undocmeth()'
+ ' .. py:method:: Class.undocmeth()',
]
# use autodoc_default_options
@@ -714,7 +714,7 @@ def test_autodoc_undoc_members(app):
' .. py:attribute:: Class.skipattr',
' .. py:method:: Class.skipmeth()',
' .. py:attribute:: Class.udocattr',
- ' .. py:method:: Class.undocmeth()'
+ ' .. py:method:: Class.undocmeth()',
]
# options negation work check
@@ -863,7 +863,7 @@ def test_autodoc_special_members(app):
' .. py:attribute:: Class.skipattr',
' .. py:method:: Class.skipmeth()',
' .. py:attribute:: Class.udocattr',
- ' .. py:method:: Class.undocmeth()'
+ ' .. py:method:: Class.undocmeth()',
]
# specific special methods from autodoc_default_options
@@ -919,7 +919,7 @@ def test_autodoc_ignore_module_all(app):
'.. py:class:: InstAttCls()',
'.. py:class:: Outer()',
' .. py:class:: Outer.Inner()',
- '.. py:class:: StrRepr'
+ '.. py:class:: StrRepr',
]
@@ -931,7 +931,7 @@ def test_autodoc_noindex(app):
'',
'.. py:module:: target',
' :noindex:',
- ''
+ '',
]
# TODO: :noindex: should be propagated to children of target item.
@@ -942,7 +942,7 @@ def test_autodoc_noindex(app):
'.. py:class:: Base()',
' :noindex:',
' :module: target.inheritance',
- ''
+ '',
]
@@ -987,7 +987,7 @@ def test_autodoc_inner_class(app):
' .. py:attribute:: Outer.factory',
' :module: target',
'',
- ' alias of :py:class:`dict`'
+ ' alias of :py:class:`dict`',
]
actual = do_autodoc(app, 'class', 'target.Outer.Inner', options)
@@ -1068,7 +1068,7 @@ def test_autodoc_descriptor(app):
' :module: target.descriptor',
'',
' Property.',
- ''
+ '',
]
@@ -1114,7 +1114,7 @@ def test_autodoc_member_order(app):
' .. py:attribute:: Class.inst_attr_inline',
' .. py:attribute:: Class.inst_attr_comment',
' .. py:attribute:: Class.inst_attr_string',
- ' .. py:attribute:: Class._private_inst_attr'
+ ' .. py:attribute:: Class._private_inst_attr',
]
# case member-order='groupwise'
@@ -1139,7 +1139,7 @@ def test_autodoc_member_order(app):
' .. py:attribute:: Class.inst_attr_string',
' .. py:attribute:: Class.mdocattr',
' .. py:attribute:: Class.skipattr',
- ' .. py:attribute:: Class.udocattr'
+ ' .. py:attribute:: Class.udocattr',
]
# case member-order=None
@@ -1163,7 +1163,7 @@ def test_autodoc_member_order(app):
' .. py:attribute:: Class.skipattr',
' .. py:method:: Class.skipmeth()',
' .. py:attribute:: Class.udocattr',
- ' .. py:method:: Class.undocmeth()'
+ ' .. py:method:: Class.undocmeth()',
]
@@ -1251,7 +1251,7 @@ def test_class_attributes(app):
' .. py:attribute:: AttCls.a2',
' :module: target',
' :value: None',
- ''
+ '',
]
@@ -1299,7 +1299,7 @@ def test_autoclass_instance_attributes(app):
' :module: target',
'',
' Docstring for instance attribute InstAttCls.ia2.',
- ''
+ '',
]
# pick up arbitrary attributes
@@ -1325,7 +1325,7 @@ def test_autoclass_instance_attributes(app):
' :module: target',
'',
' Doc comment for instance attribute InstAttCls.ia1',
- ''
+ '',
]
@@ -1338,7 +1338,7 @@ def test_autoattribute_instance_attributes(app):
' :module: target',
'',
' Doc comment for instance attribute InstAttCls.ia1',
- ''
+ '',
]
@@ -1463,7 +1463,7 @@ def test_enum_class(app):
' :value: 12',
'',
' doc for val1',
- ''
+ '',
]
@@ -1610,7 +1610,7 @@ def test_imported_partialfunction_should_not_shown_without_imported_members(app)
assert list(actual) == [
'',
'.. py:module:: target.imported_members',
- ''
+ '',
]
@@ -2035,7 +2035,7 @@ def test_autodoc_for_egged_code(app):
'',
'.. py:function:: hello(s)',
' :module: sample',
- ''
+ '',
]