From a147529a8799573e2eec81b8512ea56b27ab288f Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Tue, 13 Jan 2015 23:17:21 -0500 Subject: tests/config_test.py: modified test config info. --- tests/config_test.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/config_test.py') 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) -- cgit v1.2.3