diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-31 23:22:25 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-20 00:51:08 +0900 |
| commit | 05aff200b14741bbae3540523932a5d528816181 (patch) | |
| tree | c6a4092fcff59e12a7452416d2d746cd6d121f26 /tests/test_build_latex.py | |
| parent | 66744c656ef31811f7638b7293803b7a2b62376d (diff) | |
| download | sphinx-git-05aff200b14741bbae3540523932a5d528816181.tar.gz | |
LaTeX: Add :confval:`latex_theme_options` to override theme options
Diffstat (limited to 'tests/test_build_latex.py')
| -rw-r--r-- | tests/test_build_latex.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index ba70debc2..d3c491461 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -235,6 +235,17 @@ def test_latex_theme_papersize(app, status, warning): assert r'\documentclass[b5paper,9pt,english]{sphinxbook}' in result +@pytest.mark.sphinx('latex', testroot='latex-theme', + confoverrides={'latex_theme_options': {'papersize': 'b5paper', + 'pointsize': '9pt'}}) +def test_latex_theme_options(app, status, warning): + app.builder.build_all() + result = (app.outdir / 'python.tex').read_text(encoding='utf8') + print(result) + assert r'\def\sphinxdocclass{book}' in result + assert r'\documentclass[b5paper,9pt,english]{sphinxbook}' in result + + @pytest.mark.sphinx('latex', testroot='basic', confoverrides={'language': 'zh'}) def test_latex_additional_settings_for_language_code(app, status, warning): app.builder.build_all() |
