mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Test for LaTeX container output.
This commit is contained in:
parent
ca47ac0654
commit
180c3c92a4
0
tests/roots/test-latex-container/conf.py
Normal file
0
tests/roots/test-latex-container/conf.py
Normal file
4
tests/roots/test-latex-container/index.rst
Normal file
4
tests/roots/test-latex-container/index.rst
Normal file
@ -0,0 +1,4 @@
|
||||
.. container:: classname
|
||||
|
||||
text
|
||||
|
@ -1599,3 +1599,11 @@ def test_latex_elements_extrapackages(app, status, warning):
|
||||
def test_latex_nested_tables(app, status, warning):
|
||||
app.builder.build_all()
|
||||
assert '' == warning.getvalue()
|
||||
|
||||
|
||||
@pytest.mark.sphinx('latex', testroot='latex-container')
|
||||
def test_latex_container(app, status, warning):
|
||||
app.builder.build_all()
|
||||
result = (app.outdir / 'python.tex').read_text()
|
||||
assert r'\begin{sphinxclass}{classname}' in result
|
||||
assert r'\end{sphinxclass}' in result
|
||||
|
Loading…
Reference in New Issue
Block a user