(app)
| 20 | |
| 21 | @pytest.mark.sphinx('html', testroot='toctree-glob') |
| 22 | def test_toctree(app): |
| 23 | text = '.. toctree::\n\n foo\n bar/index\n baz\n' |
| 24 | |
| 25 | app.env.find_files(app.config, app.builder) |
| 26 | doctree = restructuredtext.parse(app, text, 'index') |
| 27 | assert_node(doctree, [nodes.document, nodes.compound, addnodes.toctree]) |
| 28 | assert_node( |
| 29 | extract_node(doctree, 0, 0), |
| 30 | entries=[(None, 'foo'), (None, 'bar/index'), (None, 'baz')], |
| 31 | includefiles=['foo', 'bar/index', 'baz'], |
| 32 | ) |
| 33 | |
| 34 | |
| 35 | @pytest.mark.sphinx('html', testroot='toctree-glob') |
nothing calls this directly
no test coverage detected
searching dependent graphs…