We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00ce787 commit 9924abeCopy full SHA for 9924abe
tests/client/test_auth.py
@@ -10,6 +10,7 @@
10
11
import httpx
12
import pytest
13
+from inline_snapshot import snapshot
14
from pydantic import AnyHttpUrl
15
16
from mcp.client.auth import OAuthClientProvider
@@ -967,7 +968,8 @@ def test_build_metadata(
967
968
revocation_options=RevocationOptions(enabled=True),
969
)
970
- assert metadata == OAuthMetadata(
971
+ assert metadata == snapshot(
972
+ OAuthMetadata(
973
issuer=AnyHttpUrl(issuer_url),
974
authorization_endpoint=AnyHttpUrl(authorization_endpoint),
975
token_endpoint=AnyHttpUrl(token_endpoint),
@@ -980,3 +982,4 @@ def test_build_metadata(
980
982
revocation_endpoint_auth_methods_supported=["client_secret_post"],
981
983
code_challenge_methods_supported=["S256"],
984
985
+ )
0 commit comments