mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Close #10146: autodoc: autodoc_default_options does not support no-value option
This commit is contained in:
@@ -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) == [
|
||||
'',
|
||||
|
||||
@@ -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) == [
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user