diff options
author | shimizukawa <shimizukawa@gmail.com> | 2017-01-07 02:13:50 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2017-01-07 02:14:29 +0900 |
commit | 4c22cd10caa7b9621ece480fade5653d65226fcc (patch) | |
tree | 19a64268e9814dfa12087dc2d432c5339a23a0a9 /tests/test_ext_math.py | |
parent | f695aac2e28e1463385b399b61fc2c4b4ef40c5c (diff) | |
parent | 620616cdbd92147f6ea7bbeb670dc3a0562235ff (diff) | |
download | sphinx-git-4c22cd10caa7b9621ece480fade5653d65226fcc.tar.gz |
Merge branch 'stable'
Diffstat (limited to 'tests/test_ext_math.py')
-rw-r--r-- | tests/test_ext_math.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/test_ext_math.py b/tests/test_ext_math.py index 0c7d44e8e..0e02c924f 100644 --- a/tests/test_ext_math.py +++ b/tests/test_ext_math.py @@ -11,11 +11,13 @@ import re -from util import with_app, SkipTest +import pytest +from util import SkipTest -@with_app(buildername='html', testroot='ext-math', - confoverrides = {'extensions': ['sphinx.ext.jsmath'], 'jsmath_path': 'dummy.js'}) +@pytest.mark.sphinx( + 'html', testroot='ext-math', + confoverrides = {'extensions': ['sphinx.ext.jsmath'], 'jsmath_path': 'dummy.js'}) def test_jsmath(app, status, warning): app.builder.build_all() content = (app.outdir / 'math.html').text() @@ -33,7 +35,7 @@ def test_jsmath(app, status, warning): assert '<div class="math">\na + 1 < b</div>' in content -@with_app('html', testroot='ext-math-simple', +@pytest.mark.sphinx('html', testroot='ext-math-simple', confoverrides = {'extensions': ['sphinx.ext.imgmath']}) def test_imgmath_png(app, status, warning): app.builder.build_all() @@ -48,7 +50,7 @@ def test_imgmath_png(app, status, warning): assert re.search(html, content, re.S) -@with_app('html', testroot='ext-math-simple', +@pytest.mark.sphinx('html', testroot='ext-math-simple', confoverrides={'extensions': ['sphinx.ext.imgmath'], 'imgmath_image_format': 'svg'}) def test_imgmath_svg(app, status, warning): @@ -64,7 +66,7 @@ def test_imgmath_svg(app, status, warning): assert re.search(html, content, re.S) -@with_app('html', testroot='ext-math', +@pytest.mark.sphinx('html', testroot='ext-math', confoverrides={'extensions': ['sphinx.ext.mathjax']}) def test_mathjax_align(app, status, warning): app.builder.build_all() @@ -76,7 +78,7 @@ def test_mathjax_align(app, status, warning): assert re.search(html, content, re.S) -@with_app('html', testroot='ext-math', +@pytest.mark.sphinx('html', testroot='ext-math', confoverrides={'math_number_all': True, 'extensions': ['sphinx.ext.mathjax']}) def test_math_number_all_mathjax(app, status, warning): @@ -88,7 +90,7 @@ def test_math_number_all_mathjax(app, status, warning): assert re.search(html, content, re.S) -@with_app('latex', testroot='ext-math', +@pytest.mark.sphinx('latex', testroot='ext-math', confoverrides={'extensions': ['sphinx.ext.mathjax']}) def test_math_number_all_latex(app, status, warning): app.builder.build_all() |