def menu():
    d = config.yaml("tests/data/cfg.yaml")
    conf = config.Config(**d)

    #if sys.platform == 'darwin':
    #    file_name = 'master_osx.yaml'
    #else:
    #    file_name = 'master_linux.yaml'
    
    file_name = 'master.yaml'
    master = read_yaml(os.path.join(conf.git_local, file_name))
    menu = get_full_menu(master)
    return menu
Exemple #2
0
def conf():
    d = config.yaml("tests/data/cfg.yaml")
    conf = config.Config(**d)
    return conf
Exemple #3
0
def test_config_ini():
    d = config.ini("tests/data/cfg.ini")
    c = config.Config(**d)
    assert c.reference_dir == "tests/data"
    assert len(d) == 4
Exemple #4
0
def test_config_yaml():
    d = config.yaml("tests/data/cfg.yaml")
    c = config.Config(**d)
    assert c.reference_dir == "tests/data"
    assert len(d) == 4