17
17
class TestWatch :
18
18
parametrize = pytest .mark .parametrize ("client" , [False , True ], indirect = True , ids = ["loose" , "strict" ])
19
19
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" )
23
21
@parametrize
24
22
def test_method_events (self , client : Kernel ) -> None :
25
23
watch_stream = client .browsers .fs .watch .events (
@@ -28,9 +26,7 @@ def test_method_events(self, client: Kernel) -> None:
28
26
)
29
27
watch_stream .response .close ()
30
28
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" )
34
30
@parametrize
35
31
def test_raw_response_events (self , client : Kernel ) -> None :
36
32
response = client .browsers .fs .watch .with_raw_response .events (
@@ -42,9 +38,7 @@ def test_raw_response_events(self, client: Kernel) -> None:
42
38
stream = response .parse ()
43
39
stream .close ()
44
40
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" )
48
42
@parametrize
49
43
def test_streaming_response_events (self , client : Kernel ) -> None :
50
44
with client .browsers .fs .watch .with_streaming_response .events (
@@ -59,9 +53,7 @@ def test_streaming_response_events(self, client: Kernel) -> None:
59
53
60
54
assert cast (Any , response .is_closed ) is True
61
55
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" )
65
57
@parametrize
66
58
def test_path_params_events (self , client : Kernel ) -> None :
67
59
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:
76
68
id = "id" ,
77
69
)
78
70
79
- @pytest .mark .skip ()
71
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
80
72
@parametrize
81
73
def test_method_start (self , client : Kernel ) -> None :
82
74
watch = client .browsers .fs .watch .start (
@@ -85,7 +77,7 @@ def test_method_start(self, client: Kernel) -> None:
85
77
)
86
78
assert_matches_type (WatchStartResponse , watch , path = ["response" ])
87
79
88
- @pytest .mark .skip ()
80
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
89
81
@parametrize
90
82
def test_method_start_with_all_params (self , client : Kernel ) -> None :
91
83
watch = client .browsers .fs .watch .start (
@@ -95,7 +87,7 @@ def test_method_start_with_all_params(self, client: Kernel) -> None:
95
87
)
96
88
assert_matches_type (WatchStartResponse , watch , path = ["response" ])
97
89
98
- @pytest .mark .skip ()
90
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
99
91
@parametrize
100
92
def test_raw_response_start (self , client : Kernel ) -> None :
101
93
response = client .browsers .fs .watch .with_raw_response .start (
@@ -108,7 +100,7 @@ def test_raw_response_start(self, client: Kernel) -> None:
108
100
watch = response .parse ()
109
101
assert_matches_type (WatchStartResponse , watch , path = ["response" ])
110
102
111
- @pytest .mark .skip ()
103
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
112
104
@parametrize
113
105
def test_streaming_response_start (self , client : Kernel ) -> None :
114
106
with client .browsers .fs .watch .with_streaming_response .start (
@@ -123,7 +115,7 @@ def test_streaming_response_start(self, client: Kernel) -> None:
123
115
124
116
assert cast (Any , response .is_closed ) is True
125
117
126
- @pytest .mark .skip ()
118
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
127
119
@parametrize
128
120
def test_path_params_start (self , client : Kernel ) -> None :
129
121
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:
132
124
path = "path" ,
133
125
)
134
126
135
- @pytest .mark .skip ()
127
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
136
128
@parametrize
137
129
def test_method_stop (self , client : Kernel ) -> None :
138
130
watch = client .browsers .fs .watch .stop (
@@ -141,7 +133,7 @@ def test_method_stop(self, client: Kernel) -> None:
141
133
)
142
134
assert watch is None
143
135
144
- @pytest .mark .skip ()
136
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
145
137
@parametrize
146
138
def test_raw_response_stop (self , client : Kernel ) -> None :
147
139
response = client .browsers .fs .watch .with_raw_response .stop (
@@ -154,7 +146,7 @@ def test_raw_response_stop(self, client: Kernel) -> None:
154
146
watch = response .parse ()
155
147
assert watch is None
156
148
157
- @pytest .mark .skip ()
149
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
158
150
@parametrize
159
151
def test_streaming_response_stop (self , client : Kernel ) -> None :
160
152
with client .browsers .fs .watch .with_streaming_response .stop (
@@ -169,7 +161,7 @@ def test_streaming_response_stop(self, client: Kernel) -> None:
169
161
170
162
assert cast (Any , response .is_closed ) is True
171
163
172
- @pytest .mark .skip ()
164
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
173
165
@parametrize
174
166
def test_path_params_stop (self , client : Kernel ) -> None :
175
167
with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
@@ -190,9 +182,7 @@ class TestAsyncWatch:
190
182
"async_client" , [False , True , {"http_client" : "aiohttp" }], indirect = True , ids = ["loose" , "strict" , "aiohttp" ]
191
183
)
192
184
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" )
196
186
@parametrize
197
187
async def test_method_events (self , async_client : AsyncKernel ) -> None :
198
188
watch_stream = await async_client .browsers .fs .watch .events (
@@ -201,9 +191,7 @@ async def test_method_events(self, async_client: AsyncKernel) -> None:
201
191
)
202
192
await watch_stream .response .aclose ()
203
193
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" )
207
195
@parametrize
208
196
async def test_raw_response_events (self , async_client : AsyncKernel ) -> None :
209
197
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:
215
203
stream = await response .parse ()
216
204
await stream .close ()
217
205
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" )
221
207
@parametrize
222
208
async def test_streaming_response_events (self , async_client : AsyncKernel ) -> None :
223
209
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
232
218
233
219
assert cast (Any , response .is_closed ) is True
234
220
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" )
238
222
@parametrize
239
223
async def test_path_params_events (self , async_client : AsyncKernel ) -> None :
240
224
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:
249
233
id = "id" ,
250
234
)
251
235
252
- @pytest .mark .skip ()
236
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
253
237
@parametrize
254
238
async def test_method_start (self , async_client : AsyncKernel ) -> None :
255
239
watch = await async_client .browsers .fs .watch .start (
@@ -258,7 +242,7 @@ async def test_method_start(self, async_client: AsyncKernel) -> None:
258
242
)
259
243
assert_matches_type (WatchStartResponse , watch , path = ["response" ])
260
244
261
- @pytest .mark .skip ()
245
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
262
246
@parametrize
263
247
async def test_method_start_with_all_params (self , async_client : AsyncKernel ) -> None :
264
248
watch = await async_client .browsers .fs .watch .start (
@@ -268,7 +252,7 @@ async def test_method_start_with_all_params(self, async_client: AsyncKernel) ->
268
252
)
269
253
assert_matches_type (WatchStartResponse , watch , path = ["response" ])
270
254
271
- @pytest .mark .skip ()
255
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
272
256
@parametrize
273
257
async def test_raw_response_start (self , async_client : AsyncKernel ) -> None :
274
258
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:
281
265
watch = await response .parse ()
282
266
assert_matches_type (WatchStartResponse , watch , path = ["response" ])
283
267
284
- @pytest .mark .skip ()
268
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
285
269
@parametrize
286
270
async def test_streaming_response_start (self , async_client : AsyncKernel ) -> None :
287
271
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
296
280
297
281
assert cast (Any , response .is_closed ) is True
298
282
299
- @pytest .mark .skip ()
283
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
300
284
@parametrize
301
285
async def test_path_params_start (self , async_client : AsyncKernel ) -> None :
302
286
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:
305
289
path = "path" ,
306
290
)
307
291
308
- @pytest .mark .skip ()
292
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
309
293
@parametrize
310
294
async def test_method_stop (self , async_client : AsyncKernel ) -> None :
311
295
watch = await async_client .browsers .fs .watch .stop (
@@ -314,7 +298,7 @@ async def test_method_stop(self, async_client: AsyncKernel) -> None:
314
298
)
315
299
assert watch is None
316
300
317
- @pytest .mark .skip ()
301
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
318
302
@parametrize
319
303
async def test_raw_response_stop (self , async_client : AsyncKernel ) -> None :
320
304
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:
327
311
watch = await response .parse ()
328
312
assert watch is None
329
313
330
- @pytest .mark .skip ()
314
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
331
315
@parametrize
332
316
async def test_streaming_response_stop (self , async_client : AsyncKernel ) -> None :
333
317
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:
342
326
343
327
assert cast (Any , response .is_closed ) is True
344
328
345
- @pytest .mark .skip ()
329
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
346
330
@parametrize
347
331
async def test_path_params_stop (self , async_client : AsyncKernel ) -> None :
348
332
with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
0 commit comments