mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add tests for HTML escaping.
This commit is contained in:
parent
410ac72590
commit
91c31181b0
@ -37,8 +37,8 @@ source_suffix = '.txt'
|
||||
master_doc = 'contents'
|
||||
|
||||
# General substitutions.
|
||||
project = 'Sphinx Tests'
|
||||
copyright = '2008, Georg Brandl'
|
||||
project = 'Sphinx <Tests>'
|
||||
copyright = '2008, Georg Brandl & Team'
|
||||
|
||||
# The default replacements for |version| and |release|, also used in various
|
||||
# other places throughout the built documents.
|
||||
|
@ -72,6 +72,8 @@ HTML_XPATH = {
|
||||
".//td[@class='label']": '[Ref1]',
|
||||
".//li[@class='toctree-l1']/a": 'Testing various markup',
|
||||
".//li[@class='toctree-l2']/a": 'Admonitions',
|
||||
".//title": 'Sphinx <Tests>',
|
||||
".//div[@class='footer']": 'Georg Brandl & Team',
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ def test_core_config(app):
|
||||
|
||||
# simple values
|
||||
assert 'project' in cfg.__dict__
|
||||
assert cfg.project == 'Sphinx Tests'
|
||||
assert cfg.project == 'Sphinx <Tests>'
|
||||
assert cfg.templates_path == ['_templates']
|
||||
|
||||
# overrides
|
||||
@ -34,7 +34,7 @@ def test_core_config(app):
|
||||
|
||||
# complex default values
|
||||
assert 'html_title' not in cfg.__dict__
|
||||
assert cfg.html_title == 'Sphinx Tests v0.4alpha1 documentation'
|
||||
assert cfg.html_title == 'Sphinx <Tests> v0.4alpha1 documentation'
|
||||
|
||||
# complex default values mustn't raise
|
||||
for valuename in cfg.config_values:
|
||||
|
Loading…
Reference in New Issue
Block a user