diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-25 01:43:23 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-29 23:55:56 +0900 |
commit | 7aa5584a47d269aa656a4d8a296aa56e2c69dc6c (patch) | |
tree | 8a67d3c0d4afc882b85331f75ba275b334209e85 /tests/test_build_epub.py | |
parent | 70c61e44c34b4dadf1a7552be7c5feabd74b98bc (diff) | |
download | sphinx-git-7aa5584a47d269aa656a4d8a296aa56e2c69dc6c.tar.gz |
Fix #7301: capital characters are not allowed for node_id
Diffstat (limited to 'tests/test_build_epub.py')
-rw-r--r-- | tests/test_build_epub.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_build_epub.py b/tests/test_build_epub.py index ca6f09cdd..f893e1351 100644 --- a/tests/test_build_epub.py +++ b/tests/test_build_epub.py @@ -320,13 +320,13 @@ def test_epub_anchor_id(app): app.build() html = (app.outdir / 'index.xhtml').read_text() - assert ('<p id="std-setting-staticfiles_finders">' + assert ('<p id="std-setting-STATICFILES_FINDERS">' '<span id="std-setting-STATICFILES_FINDERS"></span>' 'blah blah blah</p>' in html) - assert ('<span id="std-setting-staticfiles_section"></span>' + assert ('<span id="std-setting-STATICFILES_SECTION"></span>' '<span id="std-setting-STATICFILES_SECTION"></span>' '<h1>blah blah blah</h1>' in html) - assert 'see <a class="reference internal" href="#std-setting-staticfiles_finders">' in html + assert 'see <a class="reference internal" href="#std-setting-STATICFILES_FINDERS">' in html @pytest.mark.sphinx('epub', testroot='html_assets') |