summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias C. M. Troffaes <matthias.troffaes@gmail.com>2013-08-22 09:24:00 +0100
committerMatthias C. M. Troffaes <matthias.troffaes@gmail.com>2013-08-22 09:24:00 +0100
commit1800eb6c7a56a59dbc92a378e5cec0943042651f (patch)
tree119c7dcf0508f0212c95ecaf3141ca8ec8cc351e /tests
parent8e832644632aecd476f3687fd7c0d8709c299c0f (diff)
downloadsphinx-1800eb6c7a56a59dbc92a378e5cec0943042651f.tar.gz
Test that extra entries are in outdir.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_build_html.py4
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']}},