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

Function test_get_quote_raw_hash_error

sdk/python/tests/test_client.py:161–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160@pytest.mark.asyncio
161async def test_get_quote_raw_hash_error():
162 with pytest.raises(ValueError) as excinfo:
163 client = AsyncDstackClient()
164 await client.get_quote("0" * 65)
165 assert "64 bytes" in str(excinfo.value)
166 with pytest.raises(ValueError) as excinfo:
167 client = AsyncDstackClient()
168 await client.get_quote(b"0" * 129)
169 assert "64 bytes" in str(excinfo.value)
170
171
172@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

get_quoteMethod · 0.95
AsyncDstackClientClass · 0.90

Tested by

no test coverage detected