summaryrefslogtreecommitdiff
path: root/tests/test_ext_math.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-06-12 00:00:52 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-06-12 00:02:11 +0900
commit80921b2ab8dce62a4bbcea6c616a49516e5adddd (patch)
tree47ea5670231b9e5fbeee0b23469ffffaa6514773 /tests/test_ext_math.py
parent2483122c2f716bef05eeb32c4a4b857e3e44d333 (diff)
downloadsphinx-git-80921b2ab8dce62a4bbcea6c616a49516e5adddd.tar.gz
Fix flake8 violation under tests/
Diffstat (limited to 'tests/test_ext_math.py')
-rw-r--r--tests/test_ext_math.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_ext_math.py b/tests/test_ext_math.py
index 87219c294..4b168b40c 100644
--- a/tests/test_ext_math.py
+++ b/tests/test_ext_math.py
@@ -28,6 +28,7 @@ def test_imgmath_png(app, status, warning):
'\s*alt="a\^2\+b\^2=c\^2"/>\s*</p>\s*</div>')
assert re.search(html, content, re.S)
+
@with_app('html', testroot='ext-math',
confoverrides={'extensions': ['sphinx.ext.imgmath'],
'imgmath_image_format': 'svg'})
@@ -43,6 +44,7 @@ def test_imgmath_svg(app, status, warning):
'\s*alt="a\^2\+b\^2=c\^2"/>\s*</p>\s*</div>')
assert re.search(html, content, re.S)
+
@with_app('html', testroot='ext-math',
confoverrides={'extensions': ['sphinx.ext.mathjax']})
def test_mathjax_align(app, status, warning):
@@ -54,6 +56,7 @@ def test_mathjax_align(app, status, warning):
r'V \&amp;= \\frac\{4\}\{3\} \\pi r\^3\\end\{aligned\}\\end\{align\} \\\]</div>')
assert re.search(html, content, re.S)
+
@with_app('html', testroot='ext-math',
confoverrides={'math_number_all': True,
'extensions': ['sphinx.ext.mathjax']})
@@ -65,6 +68,7 @@ def test_math_number_all_mathjax(app, status, warning):
r'<span class="eqno">\(1\)</span>\\\[a\^2\+b\^2=c\^2\\\]</div>')
assert re.search(html, content, re.S)
+
@with_app('latex', testroot='ext-math',
confoverrides={'extensions': ['sphinx.ext.mathjax']})
def test_math_number_all_latex(app, status, warning):