@@ -179,10 +179,10 @@ async def test_raw_sse_connection(server, server_url) -> None:
179179 except Exception as e :
180180 pytest .fail (f"{ e } " )
181181
182+ @pytest .mark .anyio
182183@pytest .mark .skip (
183184 "fails in CI, but works locally. Need to investigate why."
184185)
185- @pytest .mark .anyio
186186async def test_sse_client_basic_connection (server : None , server_url : str ) -> None :
187187 async with sse_client (server_url + "/sse" ) as streams :
188188 async with ClientSession (* streams ) as session :
@@ -195,9 +195,6 @@ async def test_sse_client_basic_connection(server: None, server_url: str) -> Non
195195 ping_result = await session .send_ping ()
196196 assert isinstance (ping_result , EmptyResult )
197197
198- @pytest .mark .skip (
199- "fails in CI, but works locally. Need to investigate why."
200- )
201198@pytest .fixture
202199async def initialized_sse_client_session (
203200 server , server_url : str
@@ -207,10 +204,11 @@ async def initialized_sse_client_session(
207204 await session .initialize ()
208205 yield session
209206
207+
208+ @pytest .mark .anyio
210209@pytest .mark .skip (
211210 "fails in CI, but works locally. Need to investigate why."
212211)
213- @pytest .mark .anyio
214212async def test_sse_client_happy_request_and_response (
215213 initialized_sse_client_session : ClientSession ,
216214) -> None :
@@ -220,10 +218,11 @@ async def test_sse_client_happy_request_and_response(
220218 assert isinstance (response .contents [0 ], TextResourceContents )
221219 assert response .contents [0 ].text == "Read should-work"
222220
221+
222+ @pytest .mark .anyio
223223@pytest .mark .skip (
224224 "fails in CI, but works locally. Need to investigate why."
225225)
226- @pytest .mark .anyio
227226async def test_sse_client_exception_handling (
228227 initialized_sse_client_session : ClientSession ,
229228) -> None :
0 commit comments