def manager() -> RoutingManager: ctx = RequestContext() ctx.message_delivery = MessageDelivery(sender_verkey=TEST_VERKEY) ctx.injector.bind_instance(BaseStorage, BasicStorage()) return RoutingManager(ctx)
def request_context() -> RequestContext: ctx = RequestContext() ctx.message_delivery = MessageDelivery(sender_verkey=TEST_VERKEY) ctx.injector.bind_instance(BaseStorage, BasicStorage()) yield ctx
def manager() -> RoutingManager: ctx = RequestContext() ctx.sender_verkey = TEST_VERKEY ctx.storage = BasicStorage() return RoutingManager(ctx)
def store(): yield BasicStorage()
def request_context() -> RequestContext: ctx = RequestContext() ctx.sender_verkey = TEST_VERKEY ctx.storage = BasicStorage() yield ctx