mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test: Fix autosummary testcase
This commit is contained in:
parent
b3e0e29f4c
commit
dc6a8a5457
@ -2,5 +2,5 @@
|
||||
.. autosummary::
|
||||
:toctree: generated
|
||||
|
||||
autodoc_dummy_module
|
||||
autodoc_dummy_module.Foo
|
||||
autosummary_dummy_module
|
||||
autosummary_dummy_module.Foo
|
||||
|
@ -132,13 +132,13 @@ def test_escaping(app, status, warning):
|
||||
def test_autosummary_generate(app, status, warning):
|
||||
app.builder.build_all()
|
||||
|
||||
module = (app.srcdir / 'generated' / 'autodoc_dummy_module.rst').text()
|
||||
module = (app.srcdir / 'generated' / 'autosummary_dummy_module.rst').text()
|
||||
assert (' .. autosummary::\n'
|
||||
' \n'
|
||||
' Foo\n'
|
||||
' \n' in module)
|
||||
|
||||
Foo = (app.srcdir / 'generated' / 'autodoc_dummy_module.Foo.rst').text()
|
||||
Foo = (app.srcdir / 'generated' / 'autosummary_dummy_module.Foo.rst').text()
|
||||
assert '.. automethod:: __init__' in Foo
|
||||
assert (' .. autosummary::\n'
|
||||
' \n'
|
||||
|
Loading…
Reference in New Issue
Block a user