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