From b15e57265e8593e3a085f0b44858f60878289435 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Fri, 13 Feb 2015 11:12:28 -0500 Subject: All the tests now remove the node directories (tests/shard-dir-0 & tests/shard-dir-1) in the teardown method. modified: tests/config_test.py modified: tests/crypto_test.py modified: tests/events_test.py modified: tests/file_test.py modified: tests/silo_test.py deleted: tests/shard-dir-0/.foo deleted: tests/shard-dir-1/.foo --- tests/config_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/config_test.py') diff --git a/tests/config_test.py b/tests/config_test.py index e76cede..f69f4e6 100644 --- a/tests/config_test.py +++ b/tests/config_test.py @@ -22,7 +22,7 @@ from nose.tools import * from os import path, remove, rmdir from combox.config import (config_cb, get_secret, get_stdin) -from tests.utils import get_input_func +from tests.utils import get_input_func, rm_nodedirs, get_config class TestConfig(object): @@ -36,6 +36,7 @@ class TestConfig(object): 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." @@ -57,3 +58,4 @@ class TestConfig(object): def teardown_class(self): """Tear everything down.""" remove(self.config_file) + rm_nodedirs(get_config()) -- cgit v1.2.3