Merge pull request #10150 from tk0miya/10146_autodoc_default_options_should_support_no-value

Close #10146: autodoc: autodoc_default_options does not support `no-value` option
This commit is contained in:
Takeshi KOMIYA
2022-02-06 15:59:24 +09:00
committed by GitHub
6 changed files with 12 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ def test_autoattribute(app):
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_autoattribute_novalue(app):
options = {'no-value': True}
options = {'no-value': None}
actual = do_autodoc(app, 'attribute', 'target.Class.attr', options)
assert list(actual) == [
'',

View File

@@ -32,7 +32,7 @@ def test_autodata(app):
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_autodata_novalue(app):
options = {'no-value': True}
options = {'no-value': None}
actual = do_autodoc(app, 'data', 'target.integer', options)
assert list(actual) == [
'',