Test that TappdClient.tdx_quote shows deprecation warning.
()
| 497 | |
| 498 | |
| 499 | def 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 |
nothing calls this directly
no test coverage detected