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

Function test_report_data

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

Source from the content-addressed store, hash-verified

171
172@pytest.mark.asyncio
173async def test_report_data():
174 reportdata = "test"
175 client = AsyncDstackClient()
176 result = await client.get_quote(reportdata)
177 tdxQuote = TdxQuote(bytearray(result.decode_quote()))
178 reportdata = reportdata.encode("utf-8") + b"\x00" * (64 - len(reportdata))
179 assert reportdata == tdxQuote.body.reportdata
180
181
182def test_sync_client_is_reachable():

Callers

nothing calls this directly

Calls 4

get_quoteMethod · 0.95
AsyncDstackClientClass · 0.90
TdxQuoteClass · 0.85
decode_quoteMethod · 0.45

Tested by

no test coverage detected