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

Function test_tappd_client_tdx_quote_deprecated

sdk/python/tests/test_client.py:499–509  ·  view source on GitHub ↗

Test that TappdClient.tdx_quote shows deprecation warning.

()

Source from the content-addressed store, hash-verified

497
498
499def test_tappd_client_tdx_quote_deprecated():
500 """Test that TappdClient.tdx_quote shows deprecation warning."""
501 with warnings.catch_warnings(record=True) as w:
502 warnings.simplefilter("always")
503 client = TappdClient()
504
505 client.tdx_quote("test data", "raw")
506 # Should have warnings for both constructor and tdx_quote
507 warning_messages = [str(warning.message) for warning in w]
508 assert any("TappdClient is deprecated" in msg for msg in warning_messages)
509 assert any("tdx_quote is deprecated" in msg for msg in warning_messages)
510
511
512# Test AsyncTappdClient

Callers

nothing calls this directly

Calls 2

tdx_quoteMethod · 0.95
TappdClientClass · 0.90

Tested by

no test coverage detected