summaryrefslogtreecommitdiff
path: root/tests/test_ext_viewcode.py
diff options
context:
space:
mode:
authorTakayuki SHIMIZUKAWA <shimizukawa@gmail.com>2017-01-07 00:48:27 +0900
committerGitHub <noreply@github.com>2017-01-07 00:48:27 +0900
commit620616cdbd92147f6ea7bbeb670dc3a0562235ff (patch)
treed9e459cc62d2c1fe783aa665ab56680eca112ab6 /tests/test_ext_viewcode.py
parent54c8c012228559c3bf30011977984a60a9299e9b (diff)
parent89e1df0bba58fc8d420fd9f293c4e325e06fc431 (diff)
downloadsphinx-git-620616cdbd92147f6ea7bbeb670dc3a0562235ff.tar.gz
Merge pull request #3302 from sphinx-doc/pytest-stable
pytest migration
Diffstat (limited to 'tests/test_ext_viewcode.py')
-rw-r--r--tests/test_ext_viewcode.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_ext_viewcode.py b/tests/test_ext_viewcode.py
index 93e681a5d..e4763119a 100644
--- a/tests/test_ext_viewcode.py
+++ b/tests/test_ext_viewcode.py
@@ -11,10 +11,10 @@
import re
-from util import with_app
+import pytest
-@with_app(testroot='ext-viewcode')
+@pytest.mark.sphinx(testroot='ext-viewcode')
def test_viewcode(app, status, warning):
app.builder.build_all()
@@ -32,7 +32,7 @@ def test_viewcode(app, status, warning):
assert result.count('href="_modules/spam/mod2.html#Class2"') == 2
-@with_app(testroot='ext-viewcode', tags=['test_linkcode'])
+@pytest.mark.sphinx(testroot='ext-viewcode', tags=['test_linkcode'])
def test_linkcode(app, status, warning):
app.builder.build(['objects'])