Exemplo n.º 1
0
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
Exemplo n.º 2
0
def conf():
    d = config.yaml("tests/data/cfg.yaml")
    conf = config.Config(**d)
    return conf
Exemplo n.º 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
Exemplo n.º 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