mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Optimize tests: test_imgmath_png, test_imgmath_svg
This commit is contained in:
parent
edacbd56d1
commit
3fb439c476
6
tests/roots/test-ext-math-simple/conf.py
Normal file
6
tests/roots/test-ext-math-simple/conf.py
Normal file
@ -0,0 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
master_doc = 'index'
|
||||
|
||||
latex_documents = [
|
||||
(master_doc, 'test.tex', 'Math Extension Testing', 'Sphinx', 'report')]
|
4
tests/roots/test-ext-math-simple/index.rst
Normal file
4
tests/roots/test-ext-math-simple/index.rst
Normal file
@ -0,0 +1,4 @@
|
||||
Test Math
|
||||
=========
|
||||
|
||||
.. math:: a^2+b^2=c^2
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user