From 24eed3bd72efdc0346efca4d3c0a37f92afacb47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20B?= <2589111+jfbu@users.noreply.github.com> Date: Sat, 13 Aug 2022 22:09:19 +0200 Subject: [PATCH] Fix and update test_build_latex_doc to try with booktabs and colorrows --- tests/test_build_latex.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index a24c7ce803d..db0e67fc4a4 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -92,7 +92,9 @@ def test_build_latex_doc(app, status, warning, engine, docclass): app.config.latex_engine = engine app.config.latex_documents = [app.config.latex_documents[0][:4] + (docclass,)] if engine == 'xelatex': - app.config.latex_use_booktabs = True + app.config.latex_table_style = ['booktabs'] + elif engine == 'lualatex': + app.config.latex_table_style = ['colorrows'] app.builder.init() LaTeXTranslator.ignore_missing_images = True @@ -1329,7 +1331,7 @@ def get_expected(name): @pytest.mark.sphinx('latex', testroot='latex-table', confoverrides={'latex_table_style': ['booktabs', 'colorrows']}) -def test_latex_table_with_booktabs(app, status, warning): +def test_latex_table_with_booktabs_and_colorrows(app, status, warning): app.builder.build_all() result = (app.outdir / 'python.tex').read_text(encoding='utf8') assert r'\PassOptionsToPackage{booktabs}{sphinx}' in result