(app)
| 129 | |
| 130 | @pytest.mark.sphinx('html', testroot='toctree-glob') |
| 131 | def test_reversed_toctree(app): |
| 132 | text = '.. toctree::\n :reversed:\n\n foo\n bar/index\n baz\n' |
| 133 | |
| 134 | app.env.find_files(app.config, app.builder) |
| 135 | doctree = restructuredtext.parse(app, text, 'index') |
| 136 | assert_node(doctree, [nodes.document, nodes.compound, addnodes.toctree]) |
| 137 | assert_node( |
| 138 | extract_node(doctree, 0, 0), |
| 139 | entries=[(None, 'baz'), (None, 'bar/index'), (None, 'foo')], |
| 140 | includefiles=['baz', 'bar/index', 'foo'], |
| 141 | ) |
| 142 | |
| 143 | |
| 144 | @pytest.mark.sphinx('html', testroot='toctree-glob') |
nothing calls this directly
no test coverage detected
searching dependent graphs…