@@ -183,7 +183,9 @@ async def configure_multi_test(request, mctx):
183183
184184
185185class TestMultiClientBroadcast :
186- async def test_both_clients_see_tool_request_and_completion_events (self , mctx : MultiClientContext ):
186+ async def test_both_clients_see_tool_request_and_completion_events (
187+ self , mctx : MultiClientContext
188+ ):
187189 """Both clients see tool request and completion events."""
188190
189191 class SeedParams (BaseModel ):
@@ -230,7 +232,9 @@ def magic_number(params: SeedParams, invocation: ToolInvocation) -> str:
230232
231233 await session2 .disconnect ()
232234
233- async def test_one_client_approves_permission_and_both_see_the_result (self , mctx : MultiClientContext ):
235+ async def test_one_client_approves_permission_and_both_see_the_result (
236+ self , mctx : MultiClientContext
237+ ):
234238 """One client approves a permission request and both see the result."""
235239 permission_requests = []
236240
@@ -280,7 +284,9 @@ async def test_one_client_approves_permission_and_both_see_the_result(self, mctx
280284
281285 await session2 .disconnect ()
282286
283- async def test_one_client_rejects_permission_and_both_see_the_result (self , mctx : MultiClientContext ):
287+ async def test_one_client_rejects_permission_and_both_see_the_result (
288+ self , mctx : MultiClientContext
289+ ):
284290 """One client rejects a permission request and both see the result."""
285291 # Client 1 creates a session and denies all permission requests
286292 session1 = await mctx .client1 .create_session (
@@ -332,7 +338,9 @@ async def test_one_client_rejects_permission_and_both_see_the_result(self, mctx:
332338 await session2 .disconnect ()
333339
334340 @pytest .mark .timeout (90 )
335- async def test_two_clients_register_different_tools_and_agent_uses_both (self , mctx : MultiClientContext ):
341+ async def test_two_clients_register_different_tools_and_agent_uses_both (
342+ self , mctx : MultiClientContext
343+ ):
336344 """Two clients register different tools and agent uses both."""
337345
338346 class CountryCodeParams (BaseModel ):
@@ -368,8 +376,7 @@ def currency_lookup(params: CountryCodeParams, invocation: ToolInvocation) -> st
368376 await session1 .send (
369377 {
370378 "prompt" : (
371- "Now use the currency_lookup tool with"
372- " countryCode 'US' and tell me the result."
379+ "Now use the currency_lookup tool with countryCode 'US' and tell me the result."
373380 )
374381 }
375382 )
0 commit comments