diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:57:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:57:09 +0000 |
commit | 2722609ed8cf1f24bb6a8b8a5ad9d7ac6dec58c3 (patch) | |
tree | e0f8becff83e01bc4228b1824e81a6a355d6e439 /tests/test_theming/test_theming.py | |
parent | Releasing progress-linux version 7.3.7-3~progress7.99u1. (diff) | |
download | sphinx-2722609ed8cf1f24bb6a8b8a5ad9d7ac6dec58c3.tar.xz sphinx-2722609ed8cf1f24bb6a8b8a5ad9d7ac6dec58c3.zip |
Merging upstream version 7.4.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/test_theming/test_theming.py | 7 |
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') |