summaryrefslogtreecommitdiff
path: root/tests/test_directive_code.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-13 15:26:21 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-13 15:26:21 +0900
commit6d29b3814037a506750c404413ebcc5d78e1857c (patch)
treed5c57d29824df3a9b1bd095c9a3018069aaf078b /tests/test_directive_code.py
parent19efb4a39810f1035d9d891f26154c74c6b54a89 (diff)
parent822a04de9c407c5263e7e94eb9ab5a6602cb2861 (diff)
downloadsphinx-git-6d29b3814037a506750c404413ebcc5d78e1857c.tar.gz
Merge branch 'master' into sphinx-build-set-proc-count-to-cpu-count
Diffstat (limited to 'tests/test_directive_code.py')
-rw-r--r--tests/test_directive_code.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py
index 548a5d72c..f62f44f13 100644
--- a/tests/test_directive_code.py
+++ b/tests/test_directive_code.py
@@ -5,7 +5,7 @@
Test the code-block directive.
- :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
+ :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -349,6 +349,14 @@ def test_code_block_namedlink_latex(app, status, warning):
assert link2 in latex
+@pytest.mark.sphinx('latex', testroot='directive-code')
+def test_code_block_emphasize_latex(app, status, warning):
+ app.builder.build(['emphasize'])
+ latex = (app.outdir / 'Python.tex').text(encoding='utf-8').replace('\r\n', '\n')
+ includes = '\\fvset{hllines={, 5, 6, 13, 14, 15, 24, 25, 26, 27,}}%\n'
+ assert includes in latex
+
+
@pytest.mark.sphinx('xml', testroot='directive-code')
def test_literal_include(app, status, warning):
app.builder.build(['index'])