Test that TappdClient shows deprecation warning.
()
| 466 | |
| 467 | # Test deprecated TappdClient |
| 468 | def 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 | |
| 486 | def test_tappd_client_derive_key_deprecated(): |
nothing calls this directly
no test coverage detected