mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Add another test for empty toctree
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user