diff options
author | Matthias C. M. Troffaes <matthias.troffaes@gmail.com> | 2013-08-22 09:24:00 +0100 |
---|---|---|
committer | Matthias C. M. Troffaes <matthias.troffaes@gmail.com> | 2013-08-22 09:24:00 +0100 |
commit | 1800eb6c7a56a59dbc92a378e5cec0943042651f (patch) | |
tree | 119c7dcf0508f0212c95ecaf3141ca8ec8cc351e /tests | |
parent | 8e832644632aecd476f3687fd7c0d8709c299c0f (diff) | |
download | sphinx-1800eb6c7a56a59dbc92a378e5cec0943042651f.tar.gz |
Test that extra entries are in outdir.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_build_html.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 73a4e309..2a08ee92 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -320,6 +320,9 @@ def check_static_entries(outdir): # a file from _static, but matches exclude_patterns assert not (staticdir / 'excluded.css').exists() +def check_extra_entries(outdir): + assert (outdir / 'robots.txt').isfile() + @gen_with_app(buildername='html', warning=html_warnfile, cleanenv=True, confoverrides={'html_context.hckey_co': 'hcval_co'}, tags=['testtag']) @@ -345,6 +348,7 @@ def test_html(app): yield check_xpath, etree, fname, path, check check_static_entries(app.builder.outdir) + check_extra_entries(app.builder.outdir) @with_app(buildername='html', srcdir='(empty)', confoverrides={'html_sidebars': {'*': ['globaltoc.html']}}, |