diff options
Diffstat (limited to 'tests/test_ext_graphviz.py')
-rw-r--r-- | tests/test_ext_graphviz.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_ext_graphviz.py b/tests/test_ext_graphviz.py index 8a70388e8..6524fd5a8 100644 --- a/tests/test_ext_graphviz.py +++ b/tests/test_ext_graphviz.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ test_ext_graphviz ~~~~~~~~~~~~~~~~~ @@ -35,7 +34,7 @@ def test_graphviz_png_html(app, status, warning): html = (r'<div class="figure align-right" .*?>\s*' r'<div class="graphviz"><img .*?/></div>\s*<p class="caption">' - r'<span class="caption-text">on right</span>.*</p>\s*</div>') + r'<span class="caption-text">on <em>right</em></span>.*</p>\s*</div>') assert re.search(html, content, re.S) html = (r'<div align=\"center\" class=\"align-center\">' @@ -73,7 +72,7 @@ def test_graphviz_svg_html(app, status, warning): r'foo -> bar\n' r'}</p></object></div>\n' r'<p class=\"caption\"><span class=\"caption-text\">' - r'on right</span>.*</p>\n' + r'on <em>right</em></span>.*</p>\n' r'</div>') assert re.search(html, content, re.S) @@ -102,7 +101,8 @@ def test_graphviz_latex(app, status, warning): macro = ('\\\\begin{wrapfigure}{r}{0pt}\n\\\\centering\n' '\\\\sphinxincludegraphics\\[\\]{graphviz-\\w+.pdf}\n' - '\\\\caption{on right}\\\\label{.*}\\\\end{wrapfigure}') + '\\\\caption{on \\\\sphinxstyleemphasis{right}}' + '\\\\label{.*}\\\\end{wrapfigure}') assert re.search(macro, content, re.S) macro = (r'\{\\hfill' |