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")
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")
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")