summaryrefslogtreecommitdiffstats
path: root/tests/config_test.py
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-02-13 11:12:28 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-02-13 11:12:28 -0500
commitb15e57265e8593e3a085f0b44858f60878289435 (patch)
tree8c6befb36df33812639b2c32c0a6975f62d98c32 /tests/config_test.py
parentc9a5290224dd7254a23cb6e5e3baa43a21fd2362 (diff)
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
Diffstat (limited to 'tests/config_test.py')
-rw-r--r--tests/config_test.py4
1 files changed, 3 insertions, 1 deletions
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())