@pytest.fixture(scope='module')
def remote_resource(cloud_config):
 remote_uri = 'http://storage.googleapis.com/{}/'.format(cloud_config.storage_bucket)
 return (lambda path, tmpdir: fetch_gcs_resource((remote_uri + path.strip('/')), tmpdir))

@ pytest . fixture ( scope = 'module' ) def remote_resource ( cloud_config ) : remote_uri = 'http://storage.googleapis.com/{}/' . format ( cloud_config . storage_bucket ) return ( lambda path , tmpdir : fetch_gcs_resource ( ( remote_uri + path . strip ( '/' ) ) , tmpdir ) )
provides a function that downloads the given resource from cloud storage .