summaryrefslogtreecommitdiffstats
path: root/tests/test_theming
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_theming')
-rw-r--r--tests/test_theming/test_theming.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_theming/test_theming.py b/tests/test_theming/test_theming.py
index 867f8a0..680465b 100644
--- a/tests/test_theming/test_theming.py
+++ b/tests/test_theming/test_theming.py
@@ -109,10 +109,15 @@ def test_nested_zipped_theme(app, status, warning):
@pytest.mark.sphinx(testroot='theming', confoverrides={'html_theme': 'staticfiles'})
def test_staticfiles(app, status, warning):
app.build()
+ assert (app.outdir / '_static' / 'legacytmpl.html').exists()
+ assert (app.outdir / '_static' / 'legacytmpl.html').read_text(encoding='utf8') == (
+ '<!-- testing legacy _t static templates -->\n'
+ '<html><project>project name not set</project></html>'
+ )
assert (app.outdir / '_static' / 'staticimg.png').exists()
assert (app.outdir / '_static' / 'statictmpl.html').exists()
assert (app.outdir / '_static' / 'statictmpl.html').read_text(encoding='utf8') == (
- '<!-- testing static templates -->\n<html><project>Python</project></html>'
+ '<!-- testing static templates -->\n<html><project>Project name not set</project></html>'
)
result = (app.outdir / 'index.html').read_text(encoding='utf8')