def unittest_for_aws_mode_def(s3_file_cache_session, s3_session): return ModeDefinition.from_resources({ 'file_cache': S3FileCache('file-cache-bucket', 'file-cache', s3_file_cache_session), 's3': S3Resource(s3_session), })
def unittest_for_local_mode_def(temp_dir, s3_session): return ModeDefinition.from_resources({ 'file_cache': FSFileCache(temp_dir), 's3': S3Resource(s3_session) })