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

Function test_sync_to_account

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

Source from the content-addressed store, hash-verified

25
26
27def test_sync_to_account():
28 # Use mock GetKeyResponse instead of actual server call
29 mock_result = GetKeyResponse(
30 key="1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
31 signature_chain=["sig1", "sig2"],
32 )
33 assert isinstance(mock_result, GetKeyResponse)
34 account = to_account(mock_result)
35 assert isinstance(account, LocalAccount)
36
37
38@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

GetKeyResponseClass · 0.90
to_accountFunction · 0.90

Tested by

no test coverage detected