Skip to content

Commit a2a0d57

Browse files
Kludexfelixweinberger
authored andcommitted
Drop Is
1 parent fdcaa57 commit a2a0d57

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/client/test_auth.py

Lines changed: 7 additions & 7 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 Is, snapshot
9+
from inline_snapshot import snapshot
1010
from pydantic import AnyHttpUrl, AnyUrl
1111

1212
from mcp.client.auth import OAuthClientProvider, PKCEParameters
@@ -641,15 +641,15 @@ def test_build_metadata(
641641

642642
assert metadata.model_dump(exclude_defaults=True) == snapshot(
643643
{
644-
"issuer": Is(AnyHttpUrl(issuer_url)),
645-
"authorization_endpoint": Is(AnyHttpUrl(authorization_endpoint)),
646-
"token_endpoint": Is(AnyHttpUrl(token_endpoint)),
647-
"registration_endpoint": Is(AnyHttpUrl(registration_endpoint)),
644+
"issuer": AnyHttpUrl(issuer_url),
645+
"authorization_endpoint": AnyHttpUrl(authorization_endpoint),
646+
"token_endpoint": AnyHttpUrl(token_endpoint),
647+
"registration_endpoint": AnyHttpUrl(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": Is(AnyHttpUrl(service_documentation_url)),
652-
"revocation_endpoint": Is(AnyHttpUrl(revocation_endpoint)),
651+
"service_documentation": AnyHttpUrl(service_documentation_url),
652+
"revocation_endpoint": AnyHttpUrl(revocation_endpoint),
653653
"revocation_endpoint_auth_methods_supported": ["client_secret_post"],
654654
"code_challenge_methods_supported": ["S256"],
655655
}

0 commit comments

Comments
 (0)