summaryrefslogtreecommitdiffstats
path: root/tests/config_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/config_test.py')
-rw-r--r--tests/config_test.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/config_test.py b/tests/config_test.py
index b9cfb81..e76cede 100644
--- a/tests/config_test.py
+++ b/tests/config_test.py
@@ -34,7 +34,7 @@ class TestConfig(object):
def setup_class(self):
"""Set things up."""
self.CONFIG_DIR = path.join('tests', 'test-config')
-
+ self.config_file = path.join(self.CONFIG_DIR, 'config.yaml')
def test_config(self):
"Tests the combox's config function."
@@ -46,9 +46,8 @@ class TestConfig(object):
config_cb(config_dir, pass_func, input_func)
# check if the config yaml file is valid
- config_file = path.join(config_dir, 'config.yaml')
try:
- config = yaml.load(file(config_file, 'r'))
+ config = yaml.load(file(self.config_file, 'r'))
print "config: ", config
except yaml.YAMLError, exc:
raise AssertionError("Error in configuration file:", exc)
@@ -57,5 +56,4 @@ class TestConfig(object):
@classmethod
def teardown_class(self):
"""Tear everything down."""
- # must delete the created config.yaml
- pass
+ remove(self.config_file)