Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Heinisch committed Mar 4, 2024
1 parent f304188 commit 1922424
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,19 @@ def test_buildlatex_simple_height_with_tikz():
readfile('plantuml_fixture.tex'))


@with_runsphinx('latex', plantuml_latex_output_format='tikz')
def test_buildlatex_simple_max_width_with_tikz():
"""Generate simple LaTeX with TikZ
.. uml::
:max-width: 50mm
Hello
"""
assert re.search(br'\\adjustbox\{max width=50mm\}\{\\input\{+plantuml-',
readfile('plantuml_fixture.tex'))


@with_runsphinx('latex', plantuml_latex_output_format='pdf')
def test_buildlatex_simple_with_pdf():
"""Generate simple LaTeX with PDF
Expand Down

0 comments on commit 1922424

Please sign in to comment.