10
10
from cloudflare import Cloudflare , AsyncCloudflare
11
11
from tests .utils import assert_matches_type
12
12
from cloudflare .pagination import SyncSinglePage , AsyncSinglePage
13
- from cloudflare .types .stream import Watermaks , WatermarkDeleteResponse
13
+ from cloudflare .types .stream import Watermark , WatermarkDeleteResponse
14
14
15
15
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
16
16
@@ -25,7 +25,7 @@ def test_method_create(self, client: Cloudflare) -> None:
25
25
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
26
26
file = "@/Users/rchen/Downloads/watermark.png" ,
27
27
)
28
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
28
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
29
29
30
30
@pytest .mark .skip ()
31
31
@parametrize
@@ -39,7 +39,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
39
39
position = "center" ,
40
40
scale = 0.1 ,
41
41
)
42
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
42
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
43
43
44
44
@pytest .mark .skip ()
45
45
@parametrize
@@ -52,7 +52,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
52
52
assert response .is_closed is True
53
53
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
54
54
watermark = response .parse ()
55
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
55
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
56
56
57
57
@pytest .mark .skip ()
58
58
@parametrize
@@ -65,7 +65,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
65
65
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
66
66
67
67
watermark = response .parse ()
68
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
68
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
69
69
70
70
assert cast (Any , response .is_closed ) is True
71
71
@@ -84,7 +84,7 @@ def test_method_list(self, client: Cloudflare) -> None:
84
84
watermark = client .stream .watermarks .list (
85
85
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
86
86
)
87
- assert_matches_type (SyncSinglePage [Watermaks ], watermark , path = ["response" ])
87
+ assert_matches_type (SyncSinglePage [Watermark ], watermark , path = ["response" ])
88
88
89
89
@pytest .mark .skip ()
90
90
@parametrize
@@ -96,7 +96,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
96
96
assert response .is_closed is True
97
97
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
98
98
watermark = response .parse ()
99
- assert_matches_type (SyncSinglePage [Watermaks ], watermark , path = ["response" ])
99
+ assert_matches_type (SyncSinglePage [Watermark ], watermark , path = ["response" ])
100
100
101
101
@pytest .mark .skip ()
102
102
@parametrize
@@ -108,7 +108,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
108
108
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
109
109
110
110
watermark = response .parse ()
111
- assert_matches_type (SyncSinglePage [Watermaks ], watermark , path = ["response" ])
111
+ assert_matches_type (SyncSinglePage [Watermark ], watermark , path = ["response" ])
112
112
113
113
assert cast (Any , response .is_closed ) is True
114
114
@@ -184,7 +184,7 @@ def test_method_get(self, client: Cloudflare) -> None:
184
184
"ea95132c15732412d22c1476fa83f27a" ,
185
185
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
186
186
)
187
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
187
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
188
188
189
189
@pytest .mark .skip ()
190
190
@parametrize
@@ -197,7 +197,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
197
197
assert response .is_closed is True
198
198
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
199
199
watermark = response .parse ()
200
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
200
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
201
201
202
202
@pytest .mark .skip ()
203
203
@parametrize
@@ -210,7 +210,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
210
210
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
211
211
212
212
watermark = response .parse ()
213
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
213
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
214
214
215
215
assert cast (Any , response .is_closed ) is True
216
216
@@ -240,7 +240,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
240
240
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
241
241
file = "@/Users/rchen/Downloads/watermark.png" ,
242
242
)
243
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
243
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
244
244
245
245
@pytest .mark .skip ()
246
246
@parametrize
@@ -254,7 +254,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
254
254
position = "center" ,
255
255
scale = 0.1 ,
256
256
)
257
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
257
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
258
258
259
259
@pytest .mark .skip ()
260
260
@parametrize
@@ -267,7 +267,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
267
267
assert response .is_closed is True
268
268
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
269
269
watermark = await response .parse ()
270
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
270
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
271
271
272
272
@pytest .mark .skip ()
273
273
@parametrize
@@ -280,7 +280,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
280
280
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
281
281
282
282
watermark = await response .parse ()
283
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
283
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
284
284
285
285
assert cast (Any , response .is_closed ) is True
286
286
@@ -299,7 +299,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
299
299
watermark = await async_client .stream .watermarks .list (
300
300
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
301
301
)
302
- assert_matches_type (AsyncSinglePage [Watermaks ], watermark , path = ["response" ])
302
+ assert_matches_type (AsyncSinglePage [Watermark ], watermark , path = ["response" ])
303
303
304
304
@pytest .mark .skip ()
305
305
@parametrize
@@ -311,7 +311,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
311
311
assert response .is_closed is True
312
312
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
313
313
watermark = await response .parse ()
314
- assert_matches_type (AsyncSinglePage [Watermaks ], watermark , path = ["response" ])
314
+ assert_matches_type (AsyncSinglePage [Watermark ], watermark , path = ["response" ])
315
315
316
316
@pytest .mark .skip ()
317
317
@parametrize
@@ -323,7 +323,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
323
323
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
324
324
325
325
watermark = await response .parse ()
326
- assert_matches_type (AsyncSinglePage [Watermaks ], watermark , path = ["response" ])
326
+ assert_matches_type (AsyncSinglePage [Watermark ], watermark , path = ["response" ])
327
327
328
328
assert cast (Any , response .is_closed ) is True
329
329
@@ -399,7 +399,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
399
399
"ea95132c15732412d22c1476fa83f27a" ,
400
400
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
401
401
)
402
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
402
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
403
403
404
404
@pytest .mark .skip ()
405
405
@parametrize
@@ -412,7 +412,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
412
412
assert response .is_closed is True
413
413
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
414
414
watermark = await response .parse ()
415
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
415
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
416
416
417
417
@pytest .mark .skip ()
418
418
@parametrize
@@ -425,7 +425,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
425
425
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
426
426
427
427
watermark = await response .parse ()
428
- assert_matches_type (Optional [Watermaks ], watermark , path = ["response" ])
428
+ assert_matches_type (Optional [Watermark ], watermark , path = ["response" ])
429
429
430
430
assert cast (Any , response .is_closed ) is True
431
431
0 commit comments