MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / test_async_to_account_secure

Function test_async_to_account_secure

sdk/python/tests/test_ethereum.py:39–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38@pytest.mark.asyncio
39async def test_async_to_account_secure():
40 # Use mock GetKeyResponse instead of actual server call
41 mock_result = GetKeyResponse(
42 key="1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
43 signature_chain=["sig1", "sig2"],
44 )
45 assert isinstance(mock_result, GetKeyResponse)
46 account = to_account_secure(mock_result)
47 assert isinstance(account, LocalAccount)
48
49
50def test_sync_to_account_secure():

Callers

nothing calls this directly

Calls 2

GetKeyResponseClass · 0.90
to_account_secureFunction · 0.90

Tested by

no test coverage detected