Close #10146: autodoc: autodoc_default_options does not support no-value option

This commit is contained in:
Takeshi KOMIYA
2022-01-31 01:38:12 +09:00
parent 799385f555
commit b0b51cecc2
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) == [
'',