mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-04 18:33:32 -05:00
refactor: Fix the right hand value of autodoc options should be None
This commit is contained in:
@@ -110,7 +110,7 @@ def test_inherited_instance_variable(app):
|
||||
@pytest.mark.sphinx('html', testroot='ext-autodoc')
|
||||
def test_uninitialized_attributes(app):
|
||||
options = {"members": None,
|
||||
"inherited-members": True}
|
||||
"inherited-members": None}
|
||||
actual = do_autodoc(app, 'class', 'target.uninitialized_attributes.Derived', options)
|
||||
assert list(actual) == [
|
||||
'',
|
||||
@@ -138,8 +138,8 @@ def test_uninitialized_attributes(app):
|
||||
@pytest.mark.sphinx('html', testroot='ext-autodoc')
|
||||
def test_undocumented_uninitialized_attributes(app):
|
||||
options = {"members": None,
|
||||
"inherited-members": True,
|
||||
"undoc-members": True}
|
||||
"inherited-members": None,
|
||||
"undoc-members": None}
|
||||
actual = do_autodoc(app, 'class', 'target.uninitialized_attributes.Derived', options)
|
||||
assert list(actual) == [
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user