@@ -20,15 +20,15 @@ class TestContent:
2020 def test_method_create_overload_1 (self , client : Cloudflare ) -> None :
2121 content = client .browser_rendering .content .create (
2222 account_id = "account_id" ,
23- url = "https://example.com" ,
23+ url = "https://example.com/ " ,
2424 )
2525 assert_matches_type (str , content , path = ["response" ])
2626
2727 @parametrize
2828 def test_method_create_with_all_params_overload_1 (self , client : Cloudflare ) -> None :
2929 content = client .browser_rendering .content .create (
3030 account_id = "account_id" ,
31- url = "https://example.com" ,
31+ url = "https://example.com/ " ,
3232 cache_ttl = 86400 ,
3333 action_timeout = 120000 ,
3434 add_script_tag = [
@@ -104,7 +104,7 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N
104104 def test_raw_response_create_overload_1 (self , client : Cloudflare ) -> None :
105105 response = client .browser_rendering .content .with_raw_response .create (
106106 account_id = "account_id" ,
107- url = "https://example.com" ,
107+ url = "https://example.com/ " ,
108108 )
109109
110110 assert response .is_closed is True
@@ -116,7 +116,7 @@ def test_raw_response_create_overload_1(self, client: Cloudflare) -> None:
116116 def test_streaming_response_create_overload_1 (self , client : Cloudflare ) -> None :
117117 with client .browser_rendering .content .with_streaming_response .create (
118118 account_id = "account_id" ,
119- url = "https://example.com" ,
119+ url = "https://example.com/ " ,
120120 ) as response :
121121 assert not response .is_closed
122122 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -131,22 +131,22 @@ def test_path_params_create_overload_1(self, client: Cloudflare) -> None:
131131 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
132132 client .browser_rendering .content .with_raw_response .create (
133133 account_id = "" ,
134- url = "https://example.com" ,
134+ url = "https://example.com/ " ,
135135 )
136136
137137 @parametrize
138138 def test_method_create_overload_2 (self , client : Cloudflare ) -> None :
139139 content = client .browser_rendering .content .create (
140140 account_id = "account_id" ,
141- html = "x " ,
141+ html = "<h1>Hello World!</h1> " ,
142142 )
143143 assert_matches_type (str , content , path = ["response" ])
144144
145145 @parametrize
146146 def test_method_create_with_all_params_overload_2 (self , client : Cloudflare ) -> None :
147147 content = client .browser_rendering .content .create (
148148 account_id = "account_id" ,
149- html = "x " ,
149+ html = "<h1>Hello World!</h1> " ,
150150 cache_ttl = 86400 ,
151151 action_timeout = 120000 ,
152152 add_script_tag = [
@@ -222,7 +222,7 @@ def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> N
222222 def test_raw_response_create_overload_2 (self , client : Cloudflare ) -> None :
223223 response = client .browser_rendering .content .with_raw_response .create (
224224 account_id = "account_id" ,
225- html = "x " ,
225+ html = "<h1>Hello World!</h1> " ,
226226 )
227227
228228 assert response .is_closed is True
@@ -234,7 +234,7 @@ def test_raw_response_create_overload_2(self, client: Cloudflare) -> None:
234234 def test_streaming_response_create_overload_2 (self , client : Cloudflare ) -> None :
235235 with client .browser_rendering .content .with_streaming_response .create (
236236 account_id = "account_id" ,
237- html = "x " ,
237+ html = "<h1>Hello World!</h1> " ,
238238 ) as response :
239239 assert not response .is_closed
240240 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -249,7 +249,7 @@ def test_path_params_create_overload_2(self, client: Cloudflare) -> None:
249249 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
250250 client .browser_rendering .content .with_raw_response .create (
251251 account_id = "" ,
252- html = "x " ,
252+ html = "<h1>Hello World!</h1> " ,
253253 )
254254
255255
@@ -262,15 +262,15 @@ class TestAsyncContent:
262262 async def test_method_create_overload_1 (self , async_client : AsyncCloudflare ) -> None :
263263 content = await async_client .browser_rendering .content .create (
264264 account_id = "account_id" ,
265- url = "https://example.com" ,
265+ url = "https://example.com/ " ,
266266 )
267267 assert_matches_type (str , content , path = ["response" ])
268268
269269 @parametrize
270270 async def test_method_create_with_all_params_overload_1 (self , async_client : AsyncCloudflare ) -> None :
271271 content = await async_client .browser_rendering .content .create (
272272 account_id = "account_id" ,
273- url = "https://example.com" ,
273+ url = "https://example.com/ " ,
274274 cache_ttl = 86400 ,
275275 action_timeout = 120000 ,
276276 add_script_tag = [
@@ -346,7 +346,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
346346 async def test_raw_response_create_overload_1 (self , async_client : AsyncCloudflare ) -> None :
347347 response = await async_client .browser_rendering .content .with_raw_response .create (
348348 account_id = "account_id" ,
349- url = "https://example.com" ,
349+ url = "https://example.com/ " ,
350350 )
351351
352352 assert response .is_closed is True
@@ -358,7 +358,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncCloudflar
358358 async def test_streaming_response_create_overload_1 (self , async_client : AsyncCloudflare ) -> None :
359359 async with async_client .browser_rendering .content .with_streaming_response .create (
360360 account_id = "account_id" ,
361- url = "https://example.com" ,
361+ url = "https://example.com/ " ,
362362 ) as response :
363363 assert not response .is_closed
364364 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -373,22 +373,22 @@ async def test_path_params_create_overload_1(self, async_client: AsyncCloudflare
373373 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
374374 await async_client .browser_rendering .content .with_raw_response .create (
375375 account_id = "" ,
376- url = "https://example.com" ,
376+ url = "https://example.com/ " ,
377377 )
378378
379379 @parametrize
380380 async def test_method_create_overload_2 (self , async_client : AsyncCloudflare ) -> None :
381381 content = await async_client .browser_rendering .content .create (
382382 account_id = "account_id" ,
383- html = "x " ,
383+ html = "<h1>Hello World!</h1> " ,
384384 )
385385 assert_matches_type (str , content , path = ["response" ])
386386
387387 @parametrize
388388 async def test_method_create_with_all_params_overload_2 (self , async_client : AsyncCloudflare ) -> None :
389389 content = await async_client .browser_rendering .content .create (
390390 account_id = "account_id" ,
391- html = "x " ,
391+ html = "<h1>Hello World!</h1> " ,
392392 cache_ttl = 86400 ,
393393 action_timeout = 120000 ,
394394 add_script_tag = [
@@ -464,7 +464,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn
464464 async def test_raw_response_create_overload_2 (self , async_client : AsyncCloudflare ) -> None :
465465 response = await async_client .browser_rendering .content .with_raw_response .create (
466466 account_id = "account_id" ,
467- html = "x " ,
467+ html = "<h1>Hello World!</h1> " ,
468468 )
469469
470470 assert response .is_closed is True
@@ -476,7 +476,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncCloudflar
476476 async def test_streaming_response_create_overload_2 (self , async_client : AsyncCloudflare ) -> None :
477477 async with async_client .browser_rendering .content .with_streaming_response .create (
478478 account_id = "account_id" ,
479- html = "x " ,
479+ html = "<h1>Hello World!</h1> " ,
480480 ) as response :
481481 assert not response .is_closed
482482 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -491,5 +491,5 @@ async def test_path_params_create_overload_2(self, async_client: AsyncCloudflare
491491 with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
492492 await async_client .browser_rendering .content .with_raw_response .create (
493493 account_id = "" ,
494- html = "x " ,
494+ html = "<h1>Hello World!</h1> " ,
495495 )
0 commit comments