File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed
Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1010
1111import httpx
1212import pytest
13- from inline_snapshot import snapshot
1413from pydantic import AnyHttpUrl
1514
1615from mcp .client .auth import OAuthClientProvider
@@ -997,8 +996,17 @@ def test_build_metadata(
997996 assert str (metadata .registration_endpoint ) == str (expected .registration_endpoint )
998997 assert metadata .scopes_supported == expected .scopes_supported
999998 assert metadata .grant_types_supported == expected .grant_types_supported
1000- assert metadata .token_endpoint_auth_methods_supported == expected .token_endpoint_auth_methods_supported
999+ assert (
1000+ metadata .token_endpoint_auth_methods_supported
1001+ == expected .token_endpoint_auth_methods_supported
1002+ )
10011003 assert str (metadata .service_documentation ) == str (expected .service_documentation )
10021004 assert str (metadata .revocation_endpoint ) == str (expected .revocation_endpoint )
1003- assert metadata .revocation_endpoint_auth_methods_supported == expected .revocation_endpoint_auth_methods_supported
1004- assert metadata .code_challenge_methods_supported == expected .code_challenge_methods_supported
1005+ assert (
1006+ metadata .revocation_endpoint_auth_methods_supported
1007+ == expected .revocation_endpoint_auth_methods_supported
1008+ )
1009+ assert (
1010+ metadata .code_challenge_methods_supported
1011+ == expected .code_challenge_methods_supported
1012+ )
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ async def slow_resource():
3737 duration = end_time - start_time
3838 # 20 tasks (10 tools + 10 resources) should complete in significantly less time
3939 # than if they were executed serially (which would take 20 * sleep_time)
40- assert duration < 12 * _sleep_time_seconds # Increased threshold for CI environments
41- print (f"Concurrent execution duration: { duration } , threshold: { 12 * _sleep_time_seconds } " )
40+ # Increased threshold for CI environments
41+ assert duration < 12 * _sleep_time_seconds
42+ threshold = 12 * _sleep_time_seconds
43+ print (f"Concurrent execution duration: { duration } , threshold: { threshold } " )
4244
4345
4446def main ():
You can’t perform that action at this time.
0 commit comments