mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-04 04:36:43 -05:00
Add another test for empty toctree
This commit is contained in:
3 files changed
+3
-1
No files matched your search
@@ -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