@@ -206,8 +206,6 @@ def test_path_params_retrieve(self, client: Codex) -> None:
206
206
def test_method_update (self , client : Codex ) -> None :
207
207
project = client .projects .update (
208
208
project_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
209
- config = {},
210
- name = "name" ,
211
209
)
212
210
assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
213
211
@@ -216,6 +214,7 @@ def test_method_update(self, client: Codex) -> None:
216
214
def test_method_update_with_all_params (self , client : Codex ) -> None :
217
215
project = client .projects .update (
218
216
project_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
217
+ auto_clustering_enabled = True ,
219
218
config = {
220
219
"clustering_use_llm_matching" : True ,
221
220
"eval_config" : {
@@ -298,9 +297,8 @@ def test_method_update_with_all_params(self, client: Codex) -> None:
298
297
"query_use_llm_matching" : True ,
299
298
"upper_llm_match_distance_threshold" : 0 ,
300
299
},
301
- name = "name" ,
302
- auto_clustering_enabled = True ,
303
300
description = "description" ,
301
+ name = "name" ,
304
302
)
305
303
assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
306
304
@@ -309,8 +307,6 @@ def test_method_update_with_all_params(self, client: Codex) -> None:
309
307
def test_raw_response_update (self , client : Codex ) -> None :
310
308
response = client .projects .with_raw_response .update (
311
309
project_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
312
- config = {},
313
- name = "name" ,
314
310
)
315
311
316
312
assert response .is_closed is True
@@ -323,8 +319,6 @@ def test_raw_response_update(self, client: Codex) -> None:
323
319
def test_streaming_response_update (self , client : Codex ) -> None :
324
320
with client .projects .with_streaming_response .update (
325
321
project_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
326
- config = {},
327
- name = "name" ,
328
322
) as response :
329
323
assert not response .is_closed
330
324
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -340,8 +334,6 @@ def test_path_params_update(self, client: Codex) -> None:
340
334
with pytest .raises (ValueError , match = r"Expected a non-empty value for `project_id` but received ''" ):
341
335
client .projects .with_raw_response .update (
342
336
project_id = "" ,
343
- config = {},
344
- name = "name" ,
345
337
)
346
338
347
339
@pytest .mark .skip ()
@@ -919,8 +911,6 @@ async def test_path_params_retrieve(self, async_client: AsyncCodex) -> None:
919
911
async def test_method_update (self , async_client : AsyncCodex ) -> None :
920
912
project = await async_client .projects .update (
921
913
project_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
922
- config = {},
923
- name = "name" ,
924
914
)
925
915
assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
926
916
@@ -929,6 +919,7 @@ async def test_method_update(self, async_client: AsyncCodex) -> None:
929
919
async def test_method_update_with_all_params (self , async_client : AsyncCodex ) -> None :
930
920
project = await async_client .projects .update (
931
921
project_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
922
+ auto_clustering_enabled = True ,
932
923
config = {
933
924
"clustering_use_llm_matching" : True ,
934
925
"eval_config" : {
@@ -1011,9 +1002,8 @@ async def test_method_update_with_all_params(self, async_client: AsyncCodex) ->
1011
1002
"query_use_llm_matching" : True ,
1012
1003
"upper_llm_match_distance_threshold" : 0 ,
1013
1004
},
1014
- name = "name" ,
1015
- auto_clustering_enabled = True ,
1016
1005
description = "description" ,
1006
+ name = "name" ,
1017
1007
)
1018
1008
assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
1019
1009
@@ -1022,8 +1012,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncCodex) ->
1022
1012
async def test_raw_response_update (self , async_client : AsyncCodex ) -> None :
1023
1013
response = await async_client .projects .with_raw_response .update (
1024
1014
project_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
1025
- config = {},
1026
- name = "name" ,
1027
1015
)
1028
1016
1029
1017
assert response .is_closed is True
@@ -1036,8 +1024,6 @@ async def test_raw_response_update(self, async_client: AsyncCodex) -> None:
1036
1024
async def test_streaming_response_update (self , async_client : AsyncCodex ) -> None :
1037
1025
async with async_client .projects .with_streaming_response .update (
1038
1026
project_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
1039
- config = {},
1040
- name = "name" ,
1041
1027
) as response :
1042
1028
assert not response .is_closed
1043
1029
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -1053,8 +1039,6 @@ async def test_path_params_update(self, async_client: AsyncCodex) -> None:
1053
1039
with pytest .raises (ValueError , match = r"Expected a non-empty value for `project_id` but received ''" ):
1054
1040
await async_client .projects .with_raw_response .update (
1055
1041
project_id = "" ,
1056
- config = {},
1057
- name = "name" ,
1058
1042
)
1059
1043
1060
1044
@pytest .mark .skip ()
0 commit comments