def test_common_cache(fxlogs, fxdb): log = fxlogs[0] from wzdat.util import get_cache_dir cfg = make_config() d = get_cache_dir() assert os.listdir(d) == [] find_files_and_save(cfg['data_dir'], 'log', True, log.file_filter) assert os.listdir(d) == ['log_found_files.pkl'] os.remove(os.path.join(d, 'log_found_files.pkl')) cache_files() assert len(os.listdir(d)) > 0
def cache_all(): logging.debug('cache_all') cache_files() cache_finder()