@@ -25,15 +25,13 @@ class TestAgents:
2525 def test_method_create (self , client : Runloop ) -> None :
2626 agent = client .agents .create (
2727 name = "name" ,
28- version = "version" ,
2928 )
3029 assert_matches_type (AgentView , agent , path = ["response" ])
3130
3231 @parametrize
3332 def test_method_create_with_all_params (self , client : Runloop ) -> None :
3433 agent = client .agents .create (
3534 name = "name" ,
36- version = "version" ,
3735 source = {
3836 "type" : "type" ,
3937 "git" : {
@@ -56,14 +54,14 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
5654 "registry_url" : "registry_url" ,
5755 },
5856 },
57+ version = "version" ,
5958 )
6059 assert_matches_type (AgentView , agent , path = ["response" ])
6160
6261 @parametrize
6362 def test_raw_response_create (self , client : Runloop ) -> None :
6463 response = client .agents .with_raw_response .create (
6564 name = "name" ,
66- version = "version" ,
6765 )
6866
6967 assert response .is_closed is True
@@ -75,7 +73,6 @@ def test_raw_response_create(self, client: Runloop) -> None:
7573 def test_streaming_response_create (self , client : Runloop ) -> None :
7674 with client .agents .with_streaming_response .create (
7775 name = "name" ,
78- version = "version" ,
7976 ) as response :
8077 assert not response .is_closed
8178 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -271,15 +268,13 @@ class TestAsyncAgents:
271268 async def test_method_create (self , async_client : AsyncRunloop ) -> None :
272269 agent = await async_client .agents .create (
273270 name = "name" ,
274- version = "version" ,
275271 )
276272 assert_matches_type (AgentView , agent , path = ["response" ])
277273
278274 @parametrize
279275 async def test_method_create_with_all_params (self , async_client : AsyncRunloop ) -> None :
280276 agent = await async_client .agents .create (
281277 name = "name" ,
282- version = "version" ,
283278 source = {
284279 "type" : "type" ,
285280 "git" : {
@@ -302,14 +297,14 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
302297 "registry_url" : "registry_url" ,
303298 },
304299 },
300+ version = "version" ,
305301 )
306302 assert_matches_type (AgentView , agent , path = ["response" ])
307303
308304 @parametrize
309305 async def test_raw_response_create (self , async_client : AsyncRunloop ) -> None :
310306 response = await async_client .agents .with_raw_response .create (
311307 name = "name" ,
312- version = "version" ,
313308 )
314309
315310 assert response .is_closed is True
@@ -321,7 +316,6 @@ async def test_raw_response_create(self, async_client: AsyncRunloop) -> None:
321316 async def test_streaming_response_create (self , async_client : AsyncRunloop ) -> None :
322317 async with async_client .agents .with_streaming_response .create (
323318 name = "name" ,
324- version = "version" ,
325319 ) as response :
326320 assert not response .is_closed
327321 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments