@@ -102,7 +102,18 @@ def test_path_params_update_overload_1(self, client: ImageKit) -> None:
102
102
def test_method_update_overload_2 (self , client : ImageKit ) -> None :
103
103
file = client .files .update (
104
104
file_id = "fileId" ,
105
- body = {},
105
+ )
106
+ assert_matches_type (FileUpdateResponse , file , path = ["response" ])
107
+
108
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
109
+ @parametrize
110
+ def test_method_update_with_all_params_overload_2 (self , client : ImageKit ) -> None :
111
+ file = client .files .update (
112
+ file_id = "fileId" ,
113
+ publish = {
114
+ "is_published" : True ,
115
+ "include_file_versions" : True ,
116
+ },
106
117
)
107
118
assert_matches_type (FileUpdateResponse , file , path = ["response" ])
108
119
@@ -111,7 +122,6 @@ def test_method_update_overload_2(self, client: ImageKit) -> None:
111
122
def test_raw_response_update_overload_2 (self , client : ImageKit ) -> None :
112
123
response = client .files .with_raw_response .update (
113
124
file_id = "fileId" ,
114
- body = {},
115
125
)
116
126
117
127
assert response .is_closed is True
@@ -124,7 +134,6 @@ def test_raw_response_update_overload_2(self, client: ImageKit) -> None:
124
134
def test_streaming_response_update_overload_2 (self , client : ImageKit ) -> None :
125
135
with client .files .with_streaming_response .update (
126
136
file_id = "fileId" ,
127
- body = {},
128
137
) as response :
129
138
assert not response .is_closed
130
139
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -140,7 +149,6 @@ def test_path_params_update_overload_2(self, client: ImageKit) -> None:
140
149
with pytest .raises (ValueError , match = r"Expected a non-empty value for `file_id` but received ''" ):
141
150
client .files .with_raw_response .update (
142
151
file_id = "" ,
143
- body = {},
144
152
)
145
153
146
154
@pytest .mark .skip (reason = "Prism tests are disabled" )
@@ -541,7 +549,18 @@ async def test_path_params_update_overload_1(self, async_client: AsyncImageKit)
541
549
async def test_method_update_overload_2 (self , async_client : AsyncImageKit ) -> None :
542
550
file = await async_client .files .update (
543
551
file_id = "fileId" ,
544
- body = {},
552
+ )
553
+ assert_matches_type (FileUpdateResponse , file , path = ["response" ])
554
+
555
+ @pytest .mark .skip (reason = "Prism tests are disabled" )
556
+ @parametrize
557
+ async def test_method_update_with_all_params_overload_2 (self , async_client : AsyncImageKit ) -> None :
558
+ file = await async_client .files .update (
559
+ file_id = "fileId" ,
560
+ publish = {
561
+ "is_published" : True ,
562
+ "include_file_versions" : True ,
563
+ },
545
564
)
546
565
assert_matches_type (FileUpdateResponse , file , path = ["response" ])
547
566
@@ -550,7 +569,6 @@ async def test_method_update_overload_2(self, async_client: AsyncImageKit) -> No
550
569
async def test_raw_response_update_overload_2 (self , async_client : AsyncImageKit ) -> None :
551
570
response = await async_client .files .with_raw_response .update (
552
571
file_id = "fileId" ,
553
- body = {},
554
572
)
555
573
556
574
assert response .is_closed is True
@@ -563,7 +581,6 @@ async def test_raw_response_update_overload_2(self, async_client: AsyncImageKit)
563
581
async def test_streaming_response_update_overload_2 (self , async_client : AsyncImageKit ) -> None :
564
582
async with async_client .files .with_streaming_response .update (
565
583
file_id = "fileId" ,
566
- body = {},
567
584
) as response :
568
585
assert not response .is_closed
569
586
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -579,7 +596,6 @@ async def test_path_params_update_overload_2(self, async_client: AsyncImageKit)
579
596
with pytest .raises (ValueError , match = r"Expected a non-empty value for `file_id` but received ''" ):
580
597
await async_client .files .with_raw_response .update (
581
598
file_id = "" ,
582
- body = {},
583
599
)
584
600
585
601
@pytest .mark .skip (reason = "Prism tests are disabled" )
0 commit comments