def exception_hook(response, exception, metric, func_args, func_kwargs): """ @time_execution hook to collect info about the raised exception. """ if exception: return { 'exc_fqn': get_fqn(exception.__class__), 'exc_str': str(exception), }
def setup_method(self, method): push_access_tokens.CACHE_PREFIX = get_fqn(method) self.CACHE_EXPIRE_ORIG = push_access_tokens.CACHE_EXPIRE push_access_tokens.CACHE_EXPIRE = 2 # Sec.
def setup_method(self, method): cache_module.CACHE_PREFIX = get_fqn(method)
def setup_method(self, method): cache_module.CACHE_PREFIX = get_fqn(method) push_access_tokens.CACHE_PREFIX = get_fqn(method) self.CACHE_EXPIRE_ORIG = push_access_tokens.CACHE_EXPIRE push_access_tokens.CACHE_EXPIRE = 2 # Sec.
def setup_method(self, method): cache_module.CACHE_PREFIX = get_fqn(method)