summaryrefslogtreecommitdiff
path: root/tests/py35/test_autodoc_py35.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2017-01-07 00:46:26 +0900
committershimizukawa <shimizukawa@gmail.com>2017-01-08 15:14:38 +0900
commit561abdd16454b1e635325d10951363bde2f4ed83 (patch)
treed266362ec7e1dfee92f437c62a5d03102844dc2e /tests/py35/test_autodoc_py35.py
parent175c6e66a6d3c23c3efecb27d22c44d9525db545 (diff)
downloadsphinx-git-561abdd16454b1e635325d10951363bde2f4ed83.tar.gz
pytest optimizatoin:
- remote using deprecated decorators - remove gen_with_app - remove yield testing - remove pytest warnings - refactoring
Diffstat (limited to 'tests/py35/test_autodoc_py35.py')
-rw-r--r--tests/py35/test_autodoc_py35.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/py35/test_autodoc_py35.py b/tests/py35/test_autodoc_py35.py
index 6049f7521..0a4fc872a 100644
--- a/tests/py35/test_autodoc_py35.py
+++ b/tests/py35/test_autodoc_py35.py
@@ -13,7 +13,7 @@
# "raises" imported for usage by autodoc
import six
import sys
-from util import TestApp, Struct, raises, SkipTest
+from util import SphinxTestApp, Struct
import pytest
from six import StringIO
@@ -27,7 +27,7 @@ app = None
def setup_module():
global app
- app = TestApp()
+ app = SphinxTestApp()
app.builder.env.app = app
app.builder.env.temp_data['docname'] = 'dummy'
app.connect('autodoc-process-docstring', process_docstring)
@@ -185,7 +185,7 @@ def test_generate():
'Class.meth', more_content=add_content)
# test check_module
- inst = FunctionDocumenter(directive, 'raises')
+ inst = FunctionDocumenter(directive, 'add_documenter')
inst.generate(check_module=True)
assert len(directive.result) == 0