@pytest.mark.parametrize('cfg', CONFIG['get_input_fx_filelist'])
def test_get_input_fx_filelist(root, cfg):
    'Test retrieving fx filelist.'
    create_tree(root, cfg.get('available_files'), cfg.get('available_symlinks'))
    rootpath = {cfg['variable']['project']: [root]}
    drs = {cfg['variable']['project']: cfg['drs']}
    fx_files = get_input_fx_filelist(cfg['variable'], rootpath, drs)
    reference = {fx_var: (os.path.join(root, filename) if filename else None) for (fx_var, filename) in cfg['found_files'].items()}
    assert (fx_files == reference)
Test retrieving fx filelist.
@pytest.mark.parametrize('cfg', CONFIG['get_input_fx_filelist'])
def test_get_input_fx_filelist(root, cfg):
    
    create_tree(root, cfg.get('available_files'), cfg.get('available_symlinks'))
    rootpath = {cfg['variable']['project']: [root]}
    drs = {cfg['variable']['project']: cfg['drs']}
    fx_files = get_input_fx_filelist(cfg['variable'], rootpath, drs)
    reference = {fx_var: (os.path.join(root, filename) if filename else None) for (fx_var, filename) in cfg['found_files'].items()}
    assert (fx_files == reference)