summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
authorChris Dent <chris.dent@gmail.com>2018-10-23 16:09:42 +0100
committerGitHub <noreply@github.com>2018-10-23 16:09:42 +0100
commit9a873a24759f69d6414042abdfc2fde21f8cca21 (patch)
tree953b5c70cc968b523e42e7bf0594b8ac49216b9d /tests/test_config.py
parent95efbbf0137de2f0e472ca12d60cfe242c01ec27 (diff)
parent0604a3a5fd1a64098cbdaf44bbb76b805c5233c0 (diff)
downloadpaste-git-9a873a24759f69d6414042abdfc2fde21f8cca21.tar.gz
Merge pull request #1 from cdent/pytest
Switch from nose to pytest
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 8119157..bc3dcf0 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -1,9 +1,11 @@
# (c) 2007 Philip Jenvey; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
-from nose.tools import assert_raises
+
+import pytest
+import six
+
from paste.config import CONFIG, ConfigMiddleware
from paste.fixture import TestApp
-import six
test_key = 'test key'
@@ -76,8 +78,8 @@ def test_process_config(request_app=test_request_config):
assert CONFIG['process_var'] == 'foo'
CONFIG.pop_process_config()
- assert_raises(AttributeError, lambda: 'process_var' not in CONFIG)
- assert_raises(IndexError, CONFIG.pop_process_config)
+ pytest.raises(AttributeError, lambda: 'process_var' not in CONFIG)
+ pytest.raises(IndexError, CONFIG.pop_process_config)
finally:
reset_config()