summaryrefslogtreecommitdiffstats
path: root/tests/config_test.py
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-02-13 09:46:43 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-02-13 09:46:43 -0500
commitd6a0dbd9c7064daf058fc94dd0afaf169b52b1a6 (patch)
tree2f1c945297a2320ac1027faf32231ff405401b07 /tests/config_test.py
parent539509aa09cd8b03b209afb0fc217032ecec38a9 (diff)
tests/config_test.py: config.yaml file is purged after all the tests.
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)