@@ -134,7 +134,9 @@ async def sse_client_session(tg: TaskGroup, server_app: Starlette) -> AsyncGener
134134 asgi_client_factory = create_asgi_client_factory (server_app , tg )
135135
136136 async with sse_client (
137- f"{ TEST_SERVER_BASE_URL } /sse" , sse_read_timeout = 0.5 , httpx_client_factory = asgi_client_factory ,
137+ f"{ TEST_SERVER_BASE_URL } /sse" ,
138+ sse_read_timeout = 0.5 ,
139+ httpx_client_factory = asgi_client_factory ,
138140 ) as streams :
139141 async with ClientSession (* streams ) as session :
140142 yield session
@@ -238,7 +240,9 @@ async def sse_client_mounted_server_app_session(
238240 asgi_client_factory = create_asgi_client_factory (mounted_server_app , tg )
239241
240242 async with sse_client (
241- f"{ TEST_SERVER_BASE_URL } /mounted_app/sse" , sse_read_timeout = 0.5 , httpx_client_factory = asgi_client_factory ,
243+ f"{ TEST_SERVER_BASE_URL } /mounted_app/sse" ,
244+ sse_read_timeout = 0.5 ,
245+ httpx_client_factory = asgi_client_factory ,
242246 ) as streams :
243247 async with ClientSession (* streams ) as session :
244248 yield session
@@ -324,7 +328,6 @@ async def test_request_context_propagation(tg: TaskGroup, context_server_app: St
324328 headers = custom_headers ,
325329 httpx_client_factory = asgi_client_factory ,
326330 sse_read_timeout = 0.5 ,
327-
328331 ) as streams :
329332 async with ClientSession (* streams ) as session :
330333 # Initialize the session
@@ -357,7 +360,9 @@ async def test_request_context_isolation(tg: TaskGroup, context_server_app: Star
357360 headers = {"X-Request-Id" : f"request-{ i } " , "X-Custom-Value" : f"value-{ i } " }
358361
359362 async with sse_client (
360- f"{ TEST_SERVER_BASE_URL } /sse" , headers = headers , httpx_client_factory = asgi_client_factory ,
363+ f"{ TEST_SERVER_BASE_URL } /sse" ,
364+ headers = headers ,
365+ httpx_client_factory = asgi_client_factory ,
361366 ) as streams :
362367 async with ClientSession (* streams ) as session :
363368 await session .initialize ()
0 commit comments