diff --git a/tests/roots/test-build-multiple-latex-docs/conf.py b/tests/roots/test-build-multiple-latex-docs/conf.py deleted file mode 100644 index 002f791ee..000000000 --- a/tests/roots/test-build-multiple-latex-docs/conf.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- - -master_doc = 'file2' - -latex_documents = [ - ('file1', 'file1.tex', 'Multiple files building test: file1', 'Sphinx', - 'article'), - ('file2', 'file2.tex', 'Multiple files building test: file2', 'Sphinx', - 'report'), -] diff --git a/tests/roots/test-build-multiple-latex-docs/file1.rst b/tests/roots/test-build-multiple-latex-docs/file1.rst deleted file mode 100644 index 0613d1ec6..000000000 --- a/tests/roots/test-build-multiple-latex-docs/file1.rst +++ /dev/null @@ -1,4 +0,0 @@ -Testing multiple latex documents build -====================================== - -This is the first document. diff --git a/tests/roots/test-build-multiple-latex-docs/file2.rst b/tests/roots/test-build-multiple-latex-docs/file2.rst deleted file mode 100644 index a7b15a2e8..000000000 --- a/tests/roots/test-build-multiple-latex-docs/file2.rst +++ /dev/null @@ -1,4 +0,0 @@ -Testing multiple latex documents build -====================================== - -This is the second document. diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index 06a6ce9a5..56c1329f7 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -122,14 +122,6 @@ def test_build_latex_doc(app, status, warning, engine, docclass): compile_latex_document(app) -@pytest.mark.sphinx('latex', testroot='build-multiple-latex-docs') -def test_build_multiple_latex_docs(app, status, warning): - app.builder.build_all() - - assert (app.outdir / 'file1.tex').isfile() - assert (app.outdir / 'file2.tex').isfile() - - @pytest.mark.sphinx('latex') def test_writer(app, status, warning): app.builder.build_all() @@ -178,27 +170,11 @@ def test_latex_basic(app, status, warning): print(result) print(status.getvalue()) print(warning.getvalue()) - assert r'\begin{document}' in result - assert r'\maketitle' in result - assert r'\sphinxtableofcontents' in result assert r'\title{The basic Sphinx documentation for testing}' in result assert r'\release{}' in result assert r'\renewcommand{\releasename}{}' in result -@pytest.mark.sphinx('latex', testroot='basic', confoverrides={'language':'de'}) -def test_latex_shorthandoff(app, status, warning): - app.builder.build_all() - result = (app.outdir / 'test.tex').text(encoding='utf8') - print(result) - print(status.getvalue()) - print(warning.getvalue()) - assert ('\\ifdefined\\shorthandoff\n' - ' \\ifnum\\catcode`\\=\\string=\\active\\shorthandoff{=}\\fi\n' - ' \\ifnum\\catcode`\\"=\\active\\shorthandoff{"}\\fi\n' - '\\fi\n' in result) - - @pytest.mark.sphinx('latex', testroot='latex-title') def test_latex_title_after_admonitions(app, status, warning): app.builder.build_all()