Skip to content

Commit a1a4b3a

Browse files
Kludexfelixweinberger
authored andcommitted
update again
1 parent a2a0d57 commit a1a4b3a

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
@@ -6,7 +6,7 @@
66

77
import httpx
88
import pytest
9-
from inline_snapshot import snapshot
9+
from inline_snapshot import Is, snapshot
1010
from pydantic import AnyHttpUrl, AnyUrl
1111

1212
from mcp.client.auth import OAuthClientProvider, PKCEParameters
@@ -639,17 +639,17 @@ def test_build_metadata(
639639
revocation_options=RevocationOptions(enabled=True),
640640
)
641641

642-
assert metadata.model_dump(exclude_defaults=True) == snapshot(
642+
assert metadata.model_dump(exclude_defaults=True, mode="json") == snapshot(
643643
{
644-
"issuer": AnyHttpUrl(issuer_url),
645-
"authorization_endpoint": AnyHttpUrl(authorization_endpoint),
646-
"token_endpoint": AnyHttpUrl(token_endpoint),
647-
"registration_endpoint": AnyHttpUrl(registration_endpoint),
644+
"issuer": Is(issuer_url),
645+
"authorization_endpoint": Is(authorization_endpoint),
646+
"token_endpoint": Is(token_endpoint),
647+
"registration_endpoint": Is(registration_endpoint),
648648
"scopes_supported": ["read", "write", "admin"],
649649
"grant_types_supported": ["authorization_code", "refresh_token"],
650650
"token_endpoint_auth_methods_supported": ["client_secret_post"],
651-
"service_documentation": AnyHttpUrl(service_documentation_url),
652-
"revocation_endpoint": AnyHttpUrl(revocation_endpoint),
651+
"service_documentation": Is(service_documentation_url),
652+
"revocation_endpoint": Is(revocation_endpoint),
653653
"revocation_endpoint_auth_methods_supported": ["client_secret_post"],
654654
"code_challenge_methods_supported": ["S256"],
655655
}

0 commit comments

Comments
 (0)