Skip to content

Commit 024c808

Browse files
chore(internal): codegen related update
1 parent ad95f5f commit 024c808

File tree

7 files changed

+242
-310
lines changed

7 files changed

+242
-310
lines changed

tests/api_resources/browsers/fs/test_watch.py

Lines changed: 26 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
class TestWatch:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip(
21-
reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail"
22-
)
20+
@pytest.mark.skip(reason="Prism doesn't support text/event-stream responses")
2321
@parametrize
2422
def test_method_events(self, client: Kernel) -> None:
2523
watch_stream = client.browsers.fs.watch.events(
@@ -28,9 +26,7 @@ def test_method_events(self, client: Kernel) -> None:
2826
)
2927
watch_stream.response.close()
3028

31-
@pytest.mark.skip(
32-
reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail"
33-
)
29+
@pytest.mark.skip(reason="Prism doesn't support text/event-stream responses")
3430
@parametrize
3531
def test_raw_response_events(self, client: Kernel) -> None:
3632
response = client.browsers.fs.watch.with_raw_response.events(
@@ -42,9 +38,7 @@ def test_raw_response_events(self, client: Kernel) -> None:
4238
stream = response.parse()
4339
stream.close()
4440

45-
@pytest.mark.skip(
46-
reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail"
47-
)
41+
@pytest.mark.skip(reason="Prism doesn't support text/event-stream responses")
4842
@parametrize
4943
def test_streaming_response_events(self, client: Kernel) -> None:
5044
with client.browsers.fs.watch.with_streaming_response.events(
@@ -59,9 +53,7 @@ def test_streaming_response_events(self, client: Kernel) -> None:
5953

6054
assert cast(Any, response.is_closed) is True
6155

62-
@pytest.mark.skip(
63-
reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail"
64-
)
56+
@pytest.mark.skip(reason="Prism doesn't support text/event-stream responses")
6557
@parametrize
6658
def test_path_params_events(self, client: Kernel) -> None:
6759
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
@@ -76,7 +68,7 @@ def test_path_params_events(self, client: Kernel) -> None:
7668
id="id",
7769
)
7870

79-
@pytest.mark.skip()
71+
@pytest.mark.skip(reason="Prism tests are disabled")
8072
@parametrize
8173
def test_method_start(self, client: Kernel) -> None:
8274
watch = client.browsers.fs.watch.start(
@@ -85,7 +77,7 @@ def test_method_start(self, client: Kernel) -> None:
8577
)
8678
assert_matches_type(WatchStartResponse, watch, path=["response"])
8779

88-
@pytest.mark.skip()
80+
@pytest.mark.skip(reason="Prism tests are disabled")
8981
@parametrize
9082
def test_method_start_with_all_params(self, client: Kernel) -> None:
9183
watch = client.browsers.fs.watch.start(
@@ -95,7 +87,7 @@ def test_method_start_with_all_params(self, client: Kernel) -> None:
9587
)
9688
assert_matches_type(WatchStartResponse, watch, path=["response"])
9789

98-
@pytest.mark.skip()
90+
@pytest.mark.skip(reason="Prism tests are disabled")
9991
@parametrize
10092
def test_raw_response_start(self, client: Kernel) -> None:
10193
response = client.browsers.fs.watch.with_raw_response.start(
@@ -108,7 +100,7 @@ def test_raw_response_start(self, client: Kernel) -> None:
108100
watch = response.parse()
109101
assert_matches_type(WatchStartResponse, watch, path=["response"])
110102

111-
@pytest.mark.skip()
103+
@pytest.mark.skip(reason="Prism tests are disabled")
112104
@parametrize
113105
def test_streaming_response_start(self, client: Kernel) -> None:
114106
with client.browsers.fs.watch.with_streaming_response.start(
@@ -123,7 +115,7 @@ def test_streaming_response_start(self, client: Kernel) -> None:
123115

124116
assert cast(Any, response.is_closed) is True
125117

126-
@pytest.mark.skip()
118+
@pytest.mark.skip(reason="Prism tests are disabled")
127119
@parametrize
128120
def test_path_params_start(self, client: Kernel) -> None:
129121
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
@@ -132,7 +124,7 @@ def test_path_params_start(self, client: Kernel) -> None:
132124
path="path",
133125
)
134126

135-
@pytest.mark.skip()
127+
@pytest.mark.skip(reason="Prism tests are disabled")
136128
@parametrize
137129
def test_method_stop(self, client: Kernel) -> None:
138130
watch = client.browsers.fs.watch.stop(
@@ -141,7 +133,7 @@ def test_method_stop(self, client: Kernel) -> None:
141133
)
142134
assert watch is None
143135

144-
@pytest.mark.skip()
136+
@pytest.mark.skip(reason="Prism tests are disabled")
145137
@parametrize
146138
def test_raw_response_stop(self, client: Kernel) -> None:
147139
response = client.browsers.fs.watch.with_raw_response.stop(
@@ -154,7 +146,7 @@ def test_raw_response_stop(self, client: Kernel) -> None:
154146
watch = response.parse()
155147
assert watch is None
156148

157-
@pytest.mark.skip()
149+
@pytest.mark.skip(reason="Prism tests are disabled")
158150
@parametrize
159151
def test_streaming_response_stop(self, client: Kernel) -> None:
160152
with client.browsers.fs.watch.with_streaming_response.stop(
@@ -169,7 +161,7 @@ def test_streaming_response_stop(self, client: Kernel) -> None:
169161

170162
assert cast(Any, response.is_closed) is True
171163

172-
@pytest.mark.skip()
164+
@pytest.mark.skip(reason="Prism tests are disabled")
173165
@parametrize
174166
def test_path_params_stop(self, client: Kernel) -> None:
175167
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
@@ -190,9 +182,7 @@ class TestAsyncWatch:
190182
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
191183
)
192184

193-
@pytest.mark.skip(
194-
reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail"
195-
)
185+
@pytest.mark.skip(reason="Prism doesn't support text/event-stream responses")
196186
@parametrize
197187
async def test_method_events(self, async_client: AsyncKernel) -> None:
198188
watch_stream = await async_client.browsers.fs.watch.events(
@@ -201,9 +191,7 @@ async def test_method_events(self, async_client: AsyncKernel) -> None:
201191
)
202192
await watch_stream.response.aclose()
203193

204-
@pytest.mark.skip(
205-
reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail"
206-
)
194+
@pytest.mark.skip(reason="Prism doesn't support text/event-stream responses")
207195
@parametrize
208196
async def test_raw_response_events(self, async_client: AsyncKernel) -> None:
209197
response = await async_client.browsers.fs.watch.with_raw_response.events(
@@ -215,9 +203,7 @@ async def test_raw_response_events(self, async_client: AsyncKernel) -> None:
215203
stream = await response.parse()
216204
await stream.close()
217205

218-
@pytest.mark.skip(
219-
reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail"
220-
)
206+
@pytest.mark.skip(reason="Prism doesn't support text/event-stream responses")
221207
@parametrize
222208
async def test_streaming_response_events(self, async_client: AsyncKernel) -> None:
223209
async with async_client.browsers.fs.watch.with_streaming_response.events(
@@ -232,9 +218,7 @@ async def test_streaming_response_events(self, async_client: AsyncKernel) -> Non
232218

233219
assert cast(Any, response.is_closed) is True
234220

235-
@pytest.mark.skip(
236-
reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail"
237-
)
221+
@pytest.mark.skip(reason="Prism doesn't support text/event-stream responses")
238222
@parametrize
239223
async def test_path_params_events(self, async_client: AsyncKernel) -> None:
240224
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
@@ -249,7 +233,7 @@ async def test_path_params_events(self, async_client: AsyncKernel) -> None:
249233
id="id",
250234
)
251235

252-
@pytest.mark.skip()
236+
@pytest.mark.skip(reason="Prism tests are disabled")
253237
@parametrize
254238
async def test_method_start(self, async_client: AsyncKernel) -> None:
255239
watch = await async_client.browsers.fs.watch.start(
@@ -258,7 +242,7 @@ async def test_method_start(self, async_client: AsyncKernel) -> None:
258242
)
259243
assert_matches_type(WatchStartResponse, watch, path=["response"])
260244

261-
@pytest.mark.skip()
245+
@pytest.mark.skip(reason="Prism tests are disabled")
262246
@parametrize
263247
async def test_method_start_with_all_params(self, async_client: AsyncKernel) -> None:
264248
watch = await async_client.browsers.fs.watch.start(
@@ -268,7 +252,7 @@ async def test_method_start_with_all_params(self, async_client: AsyncKernel) ->
268252
)
269253
assert_matches_type(WatchStartResponse, watch, path=["response"])
270254

271-
@pytest.mark.skip()
255+
@pytest.mark.skip(reason="Prism tests are disabled")
272256
@parametrize
273257
async def test_raw_response_start(self, async_client: AsyncKernel) -> None:
274258
response = await async_client.browsers.fs.watch.with_raw_response.start(
@@ -281,7 +265,7 @@ async def test_raw_response_start(self, async_client: AsyncKernel) -> None:
281265
watch = await response.parse()
282266
assert_matches_type(WatchStartResponse, watch, path=["response"])
283267

284-
@pytest.mark.skip()
268+
@pytest.mark.skip(reason="Prism tests are disabled")
285269
@parametrize
286270
async def test_streaming_response_start(self, async_client: AsyncKernel) -> None:
287271
async with async_client.browsers.fs.watch.with_streaming_response.start(
@@ -296,7 +280,7 @@ async def test_streaming_response_start(self, async_client: AsyncKernel) -> None
296280

297281
assert cast(Any, response.is_closed) is True
298282

299-
@pytest.mark.skip()
283+
@pytest.mark.skip(reason="Prism tests are disabled")
300284
@parametrize
301285
async def test_path_params_start(self, async_client: AsyncKernel) -> None:
302286
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
@@ -305,7 +289,7 @@ async def test_path_params_start(self, async_client: AsyncKernel) -> None:
305289
path="path",
306290
)
307291

308-
@pytest.mark.skip()
292+
@pytest.mark.skip(reason="Prism tests are disabled")
309293
@parametrize
310294
async def test_method_stop(self, async_client: AsyncKernel) -> None:
311295
watch = await async_client.browsers.fs.watch.stop(
@@ -314,7 +298,7 @@ async def test_method_stop(self, async_client: AsyncKernel) -> None:
314298
)
315299
assert watch is None
316300

317-
@pytest.mark.skip()
301+
@pytest.mark.skip(reason="Prism tests are disabled")
318302
@parametrize
319303
async def test_raw_response_stop(self, async_client: AsyncKernel) -> None:
320304
response = await async_client.browsers.fs.watch.with_raw_response.stop(
@@ -327,7 +311,7 @@ async def test_raw_response_stop(self, async_client: AsyncKernel) -> None:
327311
watch = await response.parse()
328312
assert watch is None
329313

330-
@pytest.mark.skip()
314+
@pytest.mark.skip(reason="Prism tests are disabled")
331315
@parametrize
332316
async def test_streaming_response_stop(self, async_client: AsyncKernel) -> None:
333317
async with async_client.browsers.fs.watch.with_streaming_response.stop(
@@ -342,7 +326,7 @@ async def test_streaming_response_stop(self, async_client: AsyncKernel) -> None:
342326

343327
assert cast(Any, response.is_closed) is True
344328

345-
@pytest.mark.skip()
329+
@pytest.mark.skip(reason="Prism tests are disabled")
346330
@parametrize
347331
async def test_path_params_stop(self, async_client: AsyncKernel) -> None:
348332
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):

0 commit comments

Comments
 (0)