Skip to content

Commit 035fbea

Browse files
committed
use the default "contents.rst" as the index document
1 parent 759532b commit 035fbea

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
@@ -33,15 +33,15 @@ def doctree(source, config=None, return_warnings=False):
3333
f.write("extensions = ['jupyter_sphinx.execute']")
3434
if config is not None:
3535
f.write('\n' + config)
36-
with open(os.path.join(src_dir, 'index.rst'), 'w') as f:
36+
with open(os.path.join(src_dir, 'contents.rst'), 'w') as f:
3737
f.write(source)
3838
warnings = StringIO()
3939
app = SphinxTestApp(srcdir=path(src_dir), status=StringIO(),
4040
warning=warnings)
4141
apps.append(app)
4242
app.build()
4343

44-
doctree = app.env.get_doctree("index")
44+
doctree = app.env.get_doctree("contents")
4545

4646
if return_warnings:
4747
return doctree, warnings.getvalue()

0 commit comments

Comments
 (0)