コード例 #1
0
ファイル: test_deconf.py プロジェクト: drbenmorgan/worch
def test_parse_include_cwd():
    if 'DECONF_INCLUDE_PATH' in os.environ:
        os.environ.pop('DECONF_INCLUDE_PATH')
    cfg = deconf.load(os.path.join(example_dir, 'test_deconf_main.cfg'))
    check_values(cfg, "included from local directory")
コード例 #2
0
ファイル: test_deconf.py プロジェクト: drbenmorgan/worch
def test_parse_include_env():
    os.environ['DECONF_INCLUDE_PATH'] = os.path.join(example_dir,'include')
    cfg = deconf.load(os.path.join(example_dir, 'test_deconf_main2.cfg'))
    check_values(cfg, "included from environment path variable")
コード例 #3
0
ファイル: test_deconf.py プロジェクト: drbenmorgan/worch
def test_parse_self_contained():
    if 'DECONF_INCLUDE_PATH' in os.environ:
        os.environ.pop('DECONF_INCLUDE_PATH')
    cfg = deconf.load(os.path.join(example_dir, 'test_deconf.cfg'))
    check_values(cfg, "self contained")