diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-01-13 23:17:21 -0500 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-01-13 23:17:21 -0500 |
commit | a147529a8799573e2eec81b8512ea56b27ab288f (patch) | |
tree | 1097938d70e335c5bd4f01021966ed38f58aa8ae | |
parent | 7827d255a7b98ae550edf9cd8d10cbfe0f01d1ab (diff) |
tests/config_test.py: modified test config info.
-rw-r--r-- | tests/config_test.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/config_test.py b/tests/config_test.py index 7bc50c2..1e1a72c 100644 --- a/tests/config_test.py +++ b/tests/config_test.py @@ -24,12 +24,16 @@ from os import path, remove, rmdir from combox.config import (config_cb, get_secret, get_stdin) -CONFIG_DIR = path.join('tests', 'files', 'config') + +CONFIG_DIR = path.join('tests', 'test-config') +combox_dir = path.join('tests', 'files') +node_dir_0 = path.join('tests', 'shard-dir-0') +node_dir_1 = path.join('tests', 'shard-dir-1') # sample config info. -CONFIG_INFO = [CONFIG_DIR, '2', - 'gdrive', 'gdrive/path', '1024', - 'dbox', 'dbox/path', '1024'] +CONFIG_INFO = [combox_dir, '2', + 'node-0', node_dir_0, '1024', + 'node-1', node_dir_1, '1024'] CONFIG_INFO_ITER = iter(CONFIG_INFO) @@ -52,7 +56,3 @@ def test_config(): config = yaml.load(file(config_file, 'r')) except yaml.YAMLError, exc: raise AssertionError("Error in configuration file:", exc) - - # remove config dir - remove(config_file) - rmdir(CONFIG_DIR) |