From ed94a2ae8977f29cef9193dc7fb59c6c17a2d1c0 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Sun, 1 Jun 2025 11:57:44 -0400 Subject: [PATCH] Update test_bearer.py --- tests/auth/providers/test_bearer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auth/providers/test_bearer.py b/tests/auth/providers/test_bearer.py index 8f81d4339..480c9a1b9 100644 --- a/tests/auth/providers/test_bearer.py +++ b/tests/auth/providers/test_bearer.py @@ -32,7 +32,7 @@ def bearer_provider(rsa_key_pair: RSAKeyPair) -> BearerAuthProvider: ) -def run_mcp_server(public_key: str, host: str, port: int, **kwargs) -> str: +def run_mcp_server(public_key: str, host: str, port: int, **kwargs) -> None: mcp = FastMCP( auth=BearerAuthProvider( issuer="https://test.example.com", @@ -65,7 +65,7 @@ class TestRSAKeyPair: # Check that keys are in PEM format private_pem = key_pair.private_key.get_secret_value() - public_pem = key_pair.public_key.get_secret_value() + public_pem = key_pair.public_key assert "-----BEGIN PRIVATE KEY-----" in private_pem assert "-----END PRIVATE KEY-----" in private_pem