summaryrefslogtreecommitdiff
path: root/tests/test_directive_code.py
diff options
context:
space:
mode:
authorjfbu <jfbu@free.fr>2016-06-15 18:20:13 +0200
committerjfbu <jfbu@free.fr>2016-06-15 18:29:58 +0200
commit2cec5a25b2056df321cc86b5be53cf354e0b7733 (patch)
tree563d13bc3887d1bac0c390c5204e0fb22c870577 /tests/test_directive_code.py
parentbd342b872484574581d880ac47cd1292f8a19178 (diff)
parent4cf78e608ec4c8fb877f3d80b5e4409fd852c21d (diff)
downloadsphinx-git-2cec5a25b2056df321cc86b5be53cf354e0b7733.tar.gz
Merge branch 'stable'
Conflicts: sphinx/domains/cpp.py sphinx/texinputs/sphinx.sty tests/test_build_latex.py
Diffstat (limited to 'tests/test_directive_code.py')
-rw-r--r--tests/test_directive_code.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py
index b976fa875..b53145592 100644
--- a/tests/test_directive_code.py
+++ b/tests/test_directive_code.py
@@ -65,8 +65,8 @@ def test_code_block_caption_html(app, status, warning):
def test_code_block_caption_latex(app, status, warning):
app.builder.build_all()
latex = (app.outdir / 'Python.tex').text(encoding='utf-8')
- caption = '\\SphinxSetupCaptionForVerbatim{literal-block}{caption \\emph{test} rb}'
- label = '\\def\\SphinxLiteralBlockLabel{\\label{caption:caption-test-rb}}'
+ caption = '\\sphinxSetupCaptionForVerbatim{literal-block}{caption \\emph{test} rb}'
+ label = '\\def\\sphinxLiteralBlockLabel{\\label{caption:caption-test-rb}}'
link = '\hyperref[caption:caption-test-rb]' \
'{Listing \\ref{caption:caption-test-rb}}'
assert caption in latex
@@ -78,12 +78,12 @@ def test_code_block_caption_latex(app, status, warning):
def test_code_block_namedlink_latex(app, status, warning):
app.builder.build_all()
latex = (app.outdir / 'Python.tex').text(encoding='utf-8')
- label1 = '\def\SphinxLiteralBlockLabel{\label{caption:name-test-rb}}'
+ label1 = '\def\sphinxLiteralBlockLabel{\label{caption:name-test-rb}}'
link1 = '\\hyperref[caption:name\\string-test\\string-rb]'\
- '{\\crossref{\\DUrole{std,std-ref}{Ruby}}'
- label2 = '\def\SphinxLiteralBlockLabel{\label{namedblocks:some-ruby-code}}'
+ '{\\sphinxcrossref{\\DUrole{std,std-ref}{Ruby}}'
+ label2 = '\def\sphinxLiteralBlockLabel{\label{namedblocks:some-ruby-code}}'
link2 = '\\hyperref[namedblocks:some\\string-ruby\\string-code]'\
- '{\\crossref{\\DUrole{std,std-ref}{the ruby code}}}'
+ '{\\sphinxcrossref{\\DUrole{std,std-ref}{the ruby code}}}'
assert label1 in latex
assert link1 in latex
assert label2 in latex
@@ -252,8 +252,8 @@ def test_literalinclude_caption_html(app, status, warning):
def test_literalinclude_caption_latex(app, status, warning):
app.builder.build('index')
latex = (app.outdir / 'Python.tex').text(encoding='utf-8')
- caption = '\\SphinxSetupCaptionForVerbatim{literal-block}{caption \\textbf{test} py}'
- label = '\\def\\SphinxLiteralBlockLabel{\\label{caption:caption-test-py}}'
+ caption = '\\sphinxSetupCaptionForVerbatim{literal-block}{caption \\textbf{test} py}'
+ label = '\\def\\sphinxLiteralBlockLabel{\\label{caption:caption-test-py}}'
link = '\hyperref[caption:caption-test-py]' \
'{Listing \\ref{caption:caption-test-py}}'
assert caption in latex
@@ -265,12 +265,12 @@ def test_literalinclude_caption_latex(app, status, warning):
def test_literalinclude_namedlink_latex(app, status, warning):
app.builder.build('index')
latex = (app.outdir / 'Python.tex').text(encoding='utf-8')
- label1 = '\def\SphinxLiteralBlockLabel{\label{caption:name-test-py}}'
+ label1 = '\def\sphinxLiteralBlockLabel{\label{caption:name-test-py}}'
link1 = '\\hyperref[caption:name\\string-test\\string-py]'\
- '{\\crossref{\\DUrole{std,std-ref}{Python}}'
- label2 = '\def\SphinxLiteralBlockLabel{\label{namedblocks:some-python-code}}'
+ '{\\sphinxcrossref{\\DUrole{std,std-ref}{Python}}'
+ label2 = '\def\sphinxLiteralBlockLabel{\label{namedblocks:some-python-code}}'
link2 = '\\hyperref[namedblocks:some\\string-python\\string-code]'\
- '{\\crossref{\\DUrole{std,std-ref}{the python code}}}'
+ '{\\sphinxcrossref{\\DUrole{std,std-ref}{the python code}}}'
assert label1 in latex
assert link1 in latex
assert label2 in latex