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