mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add another test for empty toctree
This commit is contained in:
parent
3390b7f499
commit
beee9e80cd
2
tests/roots/test-toctree-empty/_templates/localtoc.html
Normal file
2
tests/roots/test-toctree-empty/_templates/localtoc.html
Normal file
@ -0,0 +1,2 @@
|
||||
{# This will call toctree unconditionally, whether there is a local or global toc #}
|
||||
{{ toctree() }}
|
@ -3,3 +3,4 @@
|
||||
master_doc = 'index'
|
||||
html_theme = 'classic'
|
||||
exclude_patterns = ['_build']
|
||||
templates_path = ['_templates']
|
||||
|
@ -30,7 +30,6 @@ def test_relations(app, status, warning):
|
||||
|
||||
@pytest.mark.sphinx('singlehtml', testroot='toctree-empty')
|
||||
def test_singlehtml_toctree(app, status, warning):
|
||||
docname = 'index'
|
||||
app.builder.build_all()
|
||||
try:
|
||||
app.builder._get_local_toctree('index')
|
||||
|
Loading…
Reference in New Issue
Block a user