From d6a0dbd9c7064daf058fc94dd0afaf169b52b1a6 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Fri, 13 Feb 2015 09:46:43 -0500 Subject: tests/config_test.py: config.yaml file is purged after all the tests. --- tests/config_test.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/config_test.py') 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) -- cgit v1.2.3