@@ -21,25 +21,25 @@ class TestCompanies:
2121 @parametrize
2222 def test_method_create (self , client : Intercom ) -> None :
2323 company = client .contacts .companies .create (
24- path_id = "string" ,
25- body_id = "6657add46abd0167d9419cd2" ,
24+ "string" ,
25+ company_id = "6657add46abd0167d9419cd2" ,
2626 )
2727 assert_matches_type (Company , company , path = ["response" ])
2828
2929 @parametrize
3030 def test_method_create_with_all_params (self , client : Intercom ) -> None :
3131 company = client .contacts .companies .create (
32- path_id = "string" ,
33- body_id = "6657add46abd0167d9419cd2" ,
32+ "string" ,
33+ company_id = "6657add46abd0167d9419cd2" ,
3434 intercom_version = "2.11" ,
3535 )
3636 assert_matches_type (Company , company , path = ["response" ])
3737
3838 @parametrize
3939 def test_raw_response_create (self , client : Intercom ) -> None :
4040 response = client .contacts .companies .with_raw_response .create (
41- path_id = "string" ,
42- body_id = "6657add46abd0167d9419cd2" ,
41+ "string" ,
42+ company_id = "6657add46abd0167d9419cd2" ,
4343 )
4444
4545 assert response .is_closed is True
@@ -50,8 +50,8 @@ def test_raw_response_create(self, client: Intercom) -> None:
5050 @parametrize
5151 def test_streaming_response_create (self , client : Intercom ) -> None :
5252 with client .contacts .companies .with_streaming_response .create (
53- path_id = "string" ,
54- body_id = "6657add46abd0167d9419cd2" ,
53+ "string" ,
54+ company_id = "6657add46abd0167d9419cd2" ,
5555 ) as response :
5656 assert not response .is_closed
5757 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -63,10 +63,10 @@ def test_streaming_response_create(self, client: Intercom) -> None:
6363
6464 @parametrize
6565 def test_path_params_create (self , client : Intercom ) -> None :
66- with pytest .raises (ValueError , match = r"Expected a non-empty value for `path_id ` but received ''" ):
66+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `id ` but received ''" ):
6767 client .contacts .companies .with_raw_response .create (
68- path_id = "" ,
69- body_id = "" ,
68+ "" ,
69+ company_id = "" ,
7070 )
7171
7272 @parametrize
@@ -179,25 +179,25 @@ class TestAsyncCompanies:
179179 @parametrize
180180 async def test_method_create (self , async_client : AsyncIntercom ) -> None :
181181 company = await async_client .contacts .companies .create (
182- path_id = "string" ,
183- body_id = "6657add46abd0167d9419cd2" ,
182+ "string" ,
183+ company_id = "6657add46abd0167d9419cd2" ,
184184 )
185185 assert_matches_type (Company , company , path = ["response" ])
186186
187187 @parametrize
188188 async def test_method_create_with_all_params (self , async_client : AsyncIntercom ) -> None :
189189 company = await async_client .contacts .companies .create (
190- path_id = "string" ,
191- body_id = "6657add46abd0167d9419cd2" ,
190+ "string" ,
191+ company_id = "6657add46abd0167d9419cd2" ,
192192 intercom_version = "2.11" ,
193193 )
194194 assert_matches_type (Company , company , path = ["response" ])
195195
196196 @parametrize
197197 async def test_raw_response_create (self , async_client : AsyncIntercom ) -> None :
198198 response = await async_client .contacts .companies .with_raw_response .create (
199- path_id = "string" ,
200- body_id = "6657add46abd0167d9419cd2" ,
199+ "string" ,
200+ company_id = "6657add46abd0167d9419cd2" ,
201201 )
202202
203203 assert response .is_closed is True
@@ -208,8 +208,8 @@ async def test_raw_response_create(self, async_client: AsyncIntercom) -> None:
208208 @parametrize
209209 async def test_streaming_response_create (self , async_client : AsyncIntercom ) -> None :
210210 async with async_client .contacts .companies .with_streaming_response .create (
211- path_id = "string" ,
212- body_id = "6657add46abd0167d9419cd2" ,
211+ "string" ,
212+ company_id = "6657add46abd0167d9419cd2" ,
213213 ) as response :
214214 assert not response .is_closed
215215 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -221,10 +221,10 @@ async def test_streaming_response_create(self, async_client: AsyncIntercom) -> N
221221
222222 @parametrize
223223 async def test_path_params_create (self , async_client : AsyncIntercom ) -> None :
224- with pytest .raises (ValueError , match = r"Expected a non-empty value for `path_id ` but received ''" ):
224+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `id ` but received ''" ):
225225 await async_client .contacts .companies .with_raw_response .create (
226- path_id = "" ,
227- body_id = "" ,
226+ "" ,
227+ company_id = "" ,
228228 )
229229
230230 @parametrize
0 commit comments