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

Function test_async_to_account

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

Source from the content-addressed store, hash-verified

14
15@pytest.mark.asyncio
16async def test_async_to_account():
17 # Use mock GetKeyResponse instead of actual server call
18 mock_result = GetKeyResponse(
19 key="1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
20 signature_chain=["sig1", "sig2"],
21 )
22 assert isinstance(mock_result, GetKeyResponse)
23 account = to_account(mock_result)
24 assert isinstance(account, LocalAccount)
25
26
27def test_sync_to_account():

Callers

nothing calls this directly

Calls 2

GetKeyResponseClass · 0.90
to_accountFunction · 0.90

Tested by

no test coverage detected