@@ -179,10 +179,10 @@ async def test_raw_sse_connection(server, server_url) -> None:
179
179
except Exception as e :
180
180
pytest .fail (f"{ e } " )
181
181
182
+ @pytest .mark .anyio
182
183
@pytest .mark .skip (
183
184
"fails in CI, but works locally. Need to investigate why."
184
185
)
185
- @pytest .mark .anyio
186
186
async def test_sse_client_basic_connection (server : None , server_url : str ) -> None :
187
187
async with sse_client (server_url + "/sse" ) as streams :
188
188
async with ClientSession (* streams ) as session :
@@ -195,9 +195,6 @@ async def test_sse_client_basic_connection(server: None, server_url: str) -> Non
195
195
ping_result = await session .send_ping ()
196
196
assert isinstance (ping_result , EmptyResult )
197
197
198
- @pytest .mark .skip (
199
- "fails in CI, but works locally. Need to investigate why."
200
- )
201
198
@pytest .fixture
202
199
async def initialized_sse_client_session (
203
200
server , server_url : str
@@ -207,10 +204,11 @@ async def initialized_sse_client_session(
207
204
await session .initialize ()
208
205
yield session
209
206
207
+
208
+ @pytest .mark .anyio
210
209
@pytest .mark .skip (
211
210
"fails in CI, but works locally. Need to investigate why."
212
211
)
213
- @pytest .mark .anyio
214
212
async def test_sse_client_happy_request_and_response (
215
213
initialized_sse_client_session : ClientSession ,
216
214
) -> None :
@@ -220,10 +218,11 @@ async def test_sse_client_happy_request_and_response(
220
218
assert isinstance (response .contents [0 ], TextResourceContents )
221
219
assert response .contents [0 ].text == "Read should-work"
222
220
221
+
222
+ @pytest .mark .anyio
223
223
@pytest .mark .skip (
224
224
"fails in CI, but works locally. Need to investigate why."
225
225
)
226
- @pytest .mark .anyio
227
226
async def test_sse_client_exception_handling (
228
227
initialized_sse_client_session : ClientSession ,
229
228
) -> None :
0 commit comments