def make_request(): request = testing.DummyRequest() session = apptesting.Session() # atenção: os callbacks em `services.DEFAULT_SUBSCRIBERS` serão executados # após os eventos! request.services = services.get_handlers(lambda: session) return request
def make_services(): session = apptesting.Session() return services.get_handlers(lambda: session), session
def make_request(): request = testing.DummyRequest() session = apptesting.Session() request.services = services.get_handlers(lambda: session) return request