summaryrefslogtreecommitdiff
path: root/tests/test_ext_autosummary.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-23 01:41:31 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-23 01:41:31 +0900
commit665458561fb28c882f8e66c569e6586ada8a5f8b (patch)
treec60285dc0669ce76f329eea64709a0d061c661ad /tests/test_ext_autosummary.py
parent55083d5e03b8669764e34d3cc99ed409f01c4d71 (diff)
downloadsphinx-git-665458561fb28c882f8e66c569e6586ada8a5f8b.tar.gz
fix
Diffstat (limited to 'tests/test_ext_autosummary.py')
-rw-r--r--tests/test_ext_autosummary.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_ext_autosummary.py b/tests/test_ext_autosummary.py
index 5454b4e73..7b59c8dd5 100644
--- a/tests/test_ext_autosummary.py
+++ b/tests/test_ext_autosummary.py
@@ -20,7 +20,7 @@ from sphinx import addnodes
from sphinx.ext.autosummary import (
autosummary_table, autosummary_toc, mangle_signature, import_by_name, extract_summary
)
-from sphinx.ext.autosummary.generate import generate_autosummary_docs
+from sphinx.ext.autosummary.generate import AutosummaryEntry, generate_autosummary_docs
from sphinx.testing.util import assert_node, etree_parse
from sphinx.util.docutils import new_document
@@ -382,7 +382,7 @@ def test_autosummary_imported_members(app, status, warning):
@pytest.mark.sphinx(testroot='ext-autodoc')
def test_generate_autosummary_docs_property(app):
with patch('sphinx.ext.autosummary.generate.find_autosummary_in_files') as mock:
- mock.return_value = [('target.methods.Base.prop', 'prop', None)]
+ mock.return_value = [AutosummaryEntry('target.methods.Base.prop', 'prop', None)]
generate_autosummary_docs([], output_dir=app.srcdir, builder=app.builder, app=app)
content = (app.srcdir / 'target.methods.Base.prop.rst').text()