@pytest.mark.parametrize('cfg', CONFIG['get_input_filelist'])
def test_get_input_filelist(root, cfg):
    'Test retrieving input filelist.'
    create_tree(root, cfg.get('available_files'), cfg.get('available_symlinks'))
    rootpath = {cfg['variable']['project']: [root]}
    drs = {cfg['variable']['project']: cfg['drs']}
    input_filelist = get_input_filelist(cfg['variable'], rootpath, drs)
    reference = [os.path.join(root, file) for file in cfg['found_files']]
    assert (sorted(input_filelist) == sorted(reference))
Test retrieving input filelist.
@pytest.mark.parametrize('cfg', CONFIG['get_input_filelist'])
def test_get_input_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']}
    input_filelist = get_input_filelist(cfg['variable'], rootpath, drs)
    reference = [os.path.join(root, file) for file in cfg['found_files']]
    assert (sorted(input_filelist) == sorted(reference))