summaryrefslogtreecommitdiff
path: root/tests/test_build.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2017-01-06 01:14:47 +0900
committershimizukawa <shimizukawa@gmail.com>2017-01-06 01:14:47 +0900
commitbaaef9146d46e772a680ecfe3d16e51806890156 (patch)
tree7da272de8eed1063c0b9e7c68e52c288b08d3031 /tests/test_build.py
parentb3c207dd4961b3ee3dd8c045734cb06b456e8dd8 (diff)
downloadsphinx-git-baaef9146d46e772a680ecfe3d16e51806890156.tar.gz
pytest: remove deprecated with_app decorator functions
Diffstat (limited to 'tests/test_build.py')
-rw-r--r--tests/test_build.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/test_build.py b/tests/test_build.py
index c99d87312..d623d9b88 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -9,16 +9,15 @@
:license: BSD, see LICENSE for details.
"""
-from six import BytesIO
-
import pickle
from docutils import nodes
import mock
+import pytest
from textwrap import dedent
from sphinx.errors import SphinxError
import sphinx.builders.linkcheck
-from util import with_app, rootdir, tempdir, SkipTest, TestApp, path
+from util import rootdir, tempdir, SkipTest, TestApp, path
try:
from docutils.writers.manpage import Writer as ManWriter
@@ -91,7 +90,7 @@ def test_master_doc_not_found(tempdir):
app.cleanup()
-@with_app(buildername='text', testroot='circular')
+@pytest.mark.sphinx(buildername='text', testroot='circular')
def test_circular_toctree(app, status, warning):
app.builder.build_all()
warnings = warning.getvalue()
@@ -103,7 +102,7 @@ def test_circular_toctree(app, status, warning):
'contents <- sub <- contents') in warnings
-@with_app(buildername='text', testroot='numbered-circular')
+@pytest.mark.sphinx(buildername='text', testroot='numbered-circular')
def test_numbered_circular_toctree(app, status, warning):
app.builder.build_all()
warnings = warning.getvalue()
@@ -115,7 +114,7 @@ def test_numbered_circular_toctree(app, status, warning):
'contents <- sub <- contents') in warnings
-@with_app(buildername='dummy', testroot='image-glob')
+@pytest.mark.sphinx(buildername='dummy', testroot='image-glob')
def test_image_glob(app, status, warning):
app.builder.build_all()