Esempio n. 1
0
async def session():
    """Fixture for session used in tests."""
    # pylint: disable=W0621
    context = RequestContext.test_context()
    context.message_receipt = MessageReceipt(sender_verkey=TEST_VERKEY)
    context.connection_record = ConnRecord(connection_id=TEST_CONN_ID)
    yield await context.session()
def request_context() -> RequestContext:
    ctx = RequestContext.test_context()
    yield ctx
def context(message):
    con = RequestContext.test_context()
    con.message = message
    con.update_settings({"didcomm_resolver.endpoint": "http://example.com"})
    yield con
Esempio n. 4
0
def request_context() -> RequestContext:
    yield RequestContext.test_context()
def context():
    yield RequestContext.test_context()