summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index f1eda4b00..4e05c77d1 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -15,9 +15,9 @@ from util import *
from sphinx.application import ExtensionError
-def test_core_config():
- overrides = {'master_doc': 'master', 'nonexisting_value': 'True'}
- cfg = TestApp(confoverrides=overrides).config
+@with_testapp(confoverrides={'master_doc': 'master', 'nonexisting_value': 'True'})
+def test_core_config(app):
+ cfg = app.config
# simple values
assert 'project' in cfg.__dict__
@@ -61,8 +61,8 @@ def test_core_config():
assert cfg['project'] == cfg.project == 'Sphinx Tests'
-def test_extension_values():
- app = TestApp()
+@with_testapp()
+def test_extension_values(app):
cfg = app.config
# default value