Browse Source

fix a bug

tags/v0.1.0
xuyige 6 years ago
parent
commit
8899b44add
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      test/loader/test_loader.py

+ 5
- 5
test/loader/test_loader.py View File

@@ -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]):


Loading…
Cancel
Save