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

Function test_tappd_client_deprecated

sdk/python/tests/test_client.py:468–483  ·  view source on GitHub ↗

Test that TappdClient shows deprecation warning.

()

Source from the content-addressed store, hash-verified

466
467# Test deprecated TappdClient
468def test_tappd_client_deprecated():
469 """Test that TappdClient shows deprecation warning."""
470 with warnings.catch_warnings(record=True) as w:
471 warnings.simplefilter("always")
472 TappdClient()
473
474 # Filter for TappdClient deprecation warnings specifically
475 tappd_warnings = [
476 warning
477 for warning in w
478 if issubclass(warning.category, DeprecationWarning)
479 and "TappdClient is deprecated" in str(warning.message)
480 ]
481
482 assert len(tappd_warnings) == 1
483 assert "TappdClient is deprecated" in str(tappd_warnings[0].message)
484
485
486def test_tappd_client_derive_key_deprecated():

Callers

nothing calls this directly

Calls 1

TappdClientClass · 0.90

Tested by

no test coverage detected