diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-11-23 13:31:02 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-11-23 13:31:02 +0900 |
commit | e63afbc60ec6534f3f09bb5cad1f5400da0988f1 (patch) | |
tree | d269de11f798dede9f6216829d1cb4f98081d352 /tests/test_build_latex.py | |
parent | 43fe104501912077dde3890b392a2518f784bef9 (diff) | |
parent | 0ee524e3922089b7ffbd6081c92968ae7dd510c7 (diff) | |
download | sphinx-git-e63afbc60ec6534f3f09bb5cad1f5400da0988f1.tar.gz |
Merge branch '1.5-release'
Diffstat (limited to 'tests/test_build_latex.py')
-rw-r--r-- | tests/test_build_latex.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index fcef77be6..85be43d0d 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -149,6 +149,26 @@ def test_latex_warnings(app, status, warning): '--- Got:\n' + warnings +@with_app(buildername='latex', testroot='basic') +def test_latex_title(app, status, warning): + app.builder.build_all() + result = (app.outdir / 'test.tex').text(encoding='utf8') + print(result) + print(status.getvalue()) + print(warning.getvalue()) + assert '\\title{The basic Sphinx documentation for testing}' in result + + +@with_app(buildername='latex', testroot='latex-title') +def test_latex_title_after_admonitions(app, status, warning): + app.builder.build_all() + result = (app.outdir / 'test.tex').text(encoding='utf8') + print(result) + print(status.getvalue()) + print(warning.getvalue()) + assert '\\title{test-latex-title}' in result + + @with_app(buildername='latex', testroot='numfig', confoverrides={'numfig': True}) def test_numref(app, status, warning): |