Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Fix patch address

Jeremiah Lowin60902b5de913
diff --git a/tests/auth/test_oauth_client.py b/tests/auth/test_oauth_client.py
index 70581752e..be3328a07 100644
--- a/tests/auth/test_oauth_client.py
+++ b/tests/auth/test_oauth_client.py
@@ -193,7 +193,7 @@ def client_with_headless_oauth(
raise ValueError("mcp_url is required")
return HeadlessOAuthProvider(mcp_url)
- with patch("fastmcp.client.auth.OAuth", side_effect=headless_oauth):
+ with patch("fastmcp.client.auth.oauth.OAuth", side_effect=headless_oauth):
client = Client(
transport=StreamableHttpTransport(streamable_http_server),
auth=fastmcp.client.auth.oauth.OAuth(mcp_url=streamable_http_server),