Optimize tests: test_imgmath_png, test_imgmath_svg

This commit is contained in:
Takeshi KOMIYA 2016-07-14 01:35:54 +09:00
parent edacbd56d1
commit 3fb439c476
3 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
master_doc = 'index'
latex_documents = [
(master_doc, 'test.tex', 'Math Extension Testing', 'Sphinx', 'report')]

View File

@ -0,0 +1,4 @@
Test Math
=========
.. math:: a^2+b^2=c^2

View File

@ -14,7 +14,7 @@ import re
from util import with_app, SkipTest
@with_app('html', testroot='ext-math',
@with_app('html', testroot='ext-math-simple',
confoverrides = {'extensions': ['sphinx.ext.imgmath']})
def test_imgmath_png(app, status, warning):
app.builder.build_all()
@ -29,7 +29,7 @@ def test_imgmath_png(app, status, warning):
assert re.search(html, content, re.S)
@with_app('html', testroot='ext-math',
@with_app('html', testroot='ext-math-simple',
confoverrides={'extensions': ['sphinx.ext.imgmath'],
'imgmath_image_format': 'svg'})
def test_imgmath_svg(app, status, warning):