* Updated tests according to latest changes.

This commit is contained in:
Sergio Garcia Prado 2020-03-15 12:02:49 +01:00
parent 06b54c0a1f
commit 11dbf61626
No known key found for this signature in database
GPG Key ID: EA4A45EB437CCDA9

View File

@ -121,15 +121,16 @@ def test_pep_0420_enabled_separate(make_app, apidoc):
with open(outdir / 'a.b.c.rst') as f: with open(outdir / 'a.b.c.rst') as f:
rst = f.read() rst = f.read()
assert ".. toctree::\n\n a.b.c.d\n" in rst
assert ".. toctree::\n :maxdepth: 4\n\n a.b.c.d\n" in rst
with open(outdir / 'a.b.e.rst') as f: with open(outdir / 'a.b.e.rst') as f:
rst = f.read() rst = f.read()
assert ".. toctree::\n\n a.b.e.f\n" in rst assert ".. toctree::\n :maxdepth: 4\n\n a.b.e.f\n" in rst
with open(outdir / 'a.b.x.rst') as f: with open(outdir / 'a.b.x.rst') as f:
rst = f.read() rst = f.read()
assert ".. toctree::\n\n a.b.x.y\n" in rst assert ".. toctree::\n :maxdepth: 4\n\n a.b.x.y\n" in rst
app = make_app('text', srcdir=outdir) app = make_app('text', srcdir=outdir)
app.build() app.build()
@ -485,6 +486,7 @@ def test_package_file(tempdir):
"-----------\n" "-----------\n"
"\n" "\n"
".. toctree::\n" ".. toctree::\n"
" :maxdepth: 4\n"
"\n" "\n"
" testpkg.subpkg\n" " testpkg.subpkg\n"
"\n" "\n"
@ -546,6 +548,7 @@ def test_package_file_separate(tempdir):
"----------\n" "----------\n"
"\n" "\n"
".. toctree::\n" ".. toctree::\n"
" :maxdepth: 4\n"
"\n" "\n"
" testpkg.example\n" " testpkg.example\n"
"\n" "\n"