Skip to content

Commit 598bd8a

Browse files
committed
update again
1 parent a844eec commit 598bd8a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/client/test_auth.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import httpx
1212
import pytest
13-
from inline_snapshot import snapshot
13+
from inline_snapshot import Is, snapshot
1414
from pydantic import AnyHttpUrl, AnyUrl
1515

1616
from mcp.client.auth import OAuthClientProvider
@@ -880,17 +880,17 @@ def test_build_metadata(
880880
revocation_options=RevocationOptions(enabled=True),
881881
)
882882

883-
assert metadata.model_dump(exclude_defaults=True) == snapshot(
883+
assert metadata.model_dump(exclude_defaults=True, mode="json") == snapshot(
884884
{
885-
"issuer": AnyHttpUrl(issuer_url),
886-
"authorization_endpoint": AnyHttpUrl(authorization_endpoint),
887-
"token_endpoint": AnyHttpUrl(token_endpoint),
888-
"registration_endpoint": AnyHttpUrl(registration_endpoint),
885+
"issuer": Is(issuer_url),
886+
"authorization_endpoint": Is(authorization_endpoint),
887+
"token_endpoint": Is(token_endpoint),
888+
"registration_endpoint": Is(registration_endpoint),
889889
"scopes_supported": ["read", "write", "admin"],
890890
"grant_types_supported": ["authorization_code", "refresh_token"],
891891
"token_endpoint_auth_methods_supported": ["client_secret_post"],
892-
"service_documentation": AnyHttpUrl(service_documentation_url),
893-
"revocation_endpoint": AnyHttpUrl(revocation_endpoint),
892+
"service_documentation": Is(service_documentation_url),
893+
"revocation_endpoint": Is(revocation_endpoint),
894894
"revocation_endpoint_auth_methods_supported": ["client_secret_post"],
895895
"code_challenge_methods_supported": ["S256"],
896896
}

0 commit comments

Comments
 (0)