def mock_responses(resps):
 def wrapper(func):
  @responses.activate
  @functools.wraps(func)
  def wrapped(*args, **kwargs):
   for resp in resps:
    responses.add(*resp.args, **resp.kwargs)
   return func(*args, **kwargs)
  return wrapped
 return wrapper

def mock_responses ( resps ) : def wrapper ( func ) : @ responses . activate @ functools . wraps ( func ) def wrapped ( * args , ** kwargs ) : for resp in resps : responses . add ( * resp . args , ** resp . kwargs ) return func ( * args , ** kwargs ) return wrapped return wrapper
mock responses for sleepiq .