mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-02 20:30:30 -06:00
pytest: remove deprecated with_app decorator functions
This commit is contained in:
1 parent
b3c207dd49
commit
baaef9146d
38 files changed
+264
-246
No files matched your search
+5
-6
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user