Пример #1
0
def manager() -> RoutingManager:
    ctx = RequestContext()
    ctx.message_delivery = MessageDelivery(sender_verkey=TEST_VERKEY)
    ctx.injector.bind_instance(BaseStorage, BasicStorage())
    return RoutingManager(ctx)
Пример #2
0
def request_context() -> RequestContext:
    ctx = RequestContext()
    ctx.message_delivery = MessageDelivery(sender_verkey=TEST_VERKEY)
    ctx.injector.bind_instance(BaseStorage, BasicStorage())
    yield ctx
Пример #3
0
def manager() -> RoutingManager:
    ctx = RequestContext()
    ctx.sender_verkey = TEST_VERKEY
    ctx.storage = BasicStorage()
    return RoutingManager(ctx)
Пример #4
0
def store():
    yield BasicStorage()
Пример #5
0
def request_context() -> RequestContext:
    ctx = RequestContext()
    ctx.sender_verkey = TEST_VERKEY
    ctx.storage = BasicStorage()
    yield ctx