|
|
@@ -33,12 +33,12 @@ class TestConfigLoader(unittest.TestCase): |
|
|
|
return dict |
|
|
|
|
|
|
|
test_arg = ConfigSection() |
|
|
|
#ConfigLoader("config", "").load_config(os.path.join("./loader", "config"), {"test": test_arg}) |
|
|
|
ConfigLoader("config", "").load_config("/home/ygxu/github/fastNLP_testing/fastNLP/test/loader/config", |
|
|
|
{"test": test_arg}) |
|
|
|
ConfigLoader("config", "").load_config(os.path.join("./loader", "config"), {"test": test_arg}) |
|
|
|
#ConfigLoader("config", "").load_config("/home/ygxu/github/fastNLP_testing/fastNLP/test/loader/config", |
|
|
|
# {"test": test_arg}) |
|
|
|
|
|
|
|
dict = read_section_from_config("/home/ygxu/github/fastNLP_testing/fastNLP/test/loader/config", "test") |
|
|
|
#dict = read_section_from_config(os.path.join("./loader", "config"), "test") |
|
|
|
#dict = read_section_from_config("/home/ygxu/github/fastNLP_testing/fastNLP/test/loader/config", "test") |
|
|
|
dict = read_section_from_config(os.path.join("./loader", "config"), "test") |
|
|
|
|
|
|
|
for sec in dict: |
|
|
|
if (sec not in test_arg) or (dict[sec] != test_arg[sec]): |
|
|
|