Skip to content

Commit 2fde0ff

Browse files
committed
use an up to date location for index document
1 parent 0661045 commit 2fde0ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_execute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def doctree(
4646
if config is not None:
4747
conf_contents += "\n" + config
4848
(src_dir / "conf.py").write_text(conf_contents, encoding = "utf8")
49-
(src_dir / "contents.rst").write_text(source, encoding = "utf8")
49+
(src_dir / "index.rst").write_text(source, encoding = "utf8")
5050

5151
warnings = StringIO()
5252
app = SphinxTestApp(
@@ -58,7 +58,7 @@ def doctree(
5858
apps.append(app)
5959
app.build()
6060

61-
doctree = app.env.get_and_resolve_doctree("contents", app.builder)
61+
doctree = app.env.get_and_resolve_doctree("index", app.builder)
6262

6363
if return_warnings:
6464
return doctree, warnings.getvalue()

0 commit comments

Comments
 (0)