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

Function test_sync_to_account_secure

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

Source from the content-addressed store, hash-verified

48
49
50def test_sync_to_account_secure():
51 # Use mock GetKeyResponse instead of actual server call
52 mock_result = GetKeyResponse(
53 key="1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
54 signature_chain=["sig1", "sig2"],
55 )
56 assert isinstance(mock_result, GetKeyResponse)
57 account = to_account_secure(mock_result)
58 assert isinstance(account, LocalAccount)
59
60
61def test_to_account_with_tls_key():

Callers

nothing calls this directly

Calls 2

GetKeyResponseClass · 0.90
to_account_secureFunction · 0.90

Tested by

no test coverage detected