@@ -160,15 +160,24 @@ def test_path_params_configure(self, client: Supermemory) -> None:
160160 @parametrize
161161 def test_method_delete_by_id (self , client : Supermemory ) -> None :
162162 connection = client .connections .delete_by_id (
163- "connectionId" ,
163+ connection_id = "connectionId" ,
164+ )
165+ assert_matches_type (ConnectionDeleteByIDResponse , connection , path = ["response" ])
166+
167+ @pytest .mark .skip (reason = "Mock server tests are disabled" )
168+ @parametrize
169+ def test_method_delete_by_id_with_all_params (self , client : Supermemory ) -> None :
170+ connection = client .connections .delete_by_id (
171+ connection_id = "connectionId" ,
172+ delete_documents = "deleteDocuments" ,
164173 )
165174 assert_matches_type (ConnectionDeleteByIDResponse , connection , path = ["response" ])
166175
167176 @pytest .mark .skip (reason = "Mock server tests are disabled" )
168177 @parametrize
169178 def test_raw_response_delete_by_id (self , client : Supermemory ) -> None :
170179 response = client .connections .with_raw_response .delete_by_id (
171- "connectionId" ,
180+ connection_id = "connectionId" ,
172181 )
173182
174183 assert response .is_closed is True
@@ -180,7 +189,7 @@ def test_raw_response_delete_by_id(self, client: Supermemory) -> None:
180189 @parametrize
181190 def test_streaming_response_delete_by_id (self , client : Supermemory ) -> None :
182191 with client .connections .with_streaming_response .delete_by_id (
183- "connectionId" ,
192+ connection_id = "connectionId" ,
184193 ) as response :
185194 assert not response .is_closed
186195 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -195,7 +204,7 @@ def test_streaming_response_delete_by_id(self, client: Supermemory) -> None:
195204 def test_path_params_delete_by_id (self , client : Supermemory ) -> None :
196205 with pytest .raises (ValueError , match = r"Expected a non-empty value for `connection_id` but received ''" ):
197206 client .connections .with_raw_response .delete_by_id (
198- "" ,
207+ connection_id = "" ,
199208 )
200209
201210 @pytest .mark .skip (reason = "Mock server tests are disabled" )
@@ -591,15 +600,24 @@ async def test_path_params_configure(self, async_client: AsyncSupermemory) -> No
591600 @parametrize
592601 async def test_method_delete_by_id (self , async_client : AsyncSupermemory ) -> None :
593602 connection = await async_client .connections .delete_by_id (
594- "connectionId" ,
603+ connection_id = "connectionId" ,
604+ )
605+ assert_matches_type (ConnectionDeleteByIDResponse , connection , path = ["response" ])
606+
607+ @pytest .mark .skip (reason = "Mock server tests are disabled" )
608+ @parametrize
609+ async def test_method_delete_by_id_with_all_params (self , async_client : AsyncSupermemory ) -> None :
610+ connection = await async_client .connections .delete_by_id (
611+ connection_id = "connectionId" ,
612+ delete_documents = "deleteDocuments" ,
595613 )
596614 assert_matches_type (ConnectionDeleteByIDResponse , connection , path = ["response" ])
597615
598616 @pytest .mark .skip (reason = "Mock server tests are disabled" )
599617 @parametrize
600618 async def test_raw_response_delete_by_id (self , async_client : AsyncSupermemory ) -> None :
601619 response = await async_client .connections .with_raw_response .delete_by_id (
602- "connectionId" ,
620+ connection_id = "connectionId" ,
603621 )
604622
605623 assert response .is_closed is True
@@ -611,7 +629,7 @@ async def test_raw_response_delete_by_id(self, async_client: AsyncSupermemory) -
611629 @parametrize
612630 async def test_streaming_response_delete_by_id (self , async_client : AsyncSupermemory ) -> None :
613631 async with async_client .connections .with_streaming_response .delete_by_id (
614- "connectionId" ,
632+ connection_id = "connectionId" ,
615633 ) as response :
616634 assert not response .is_closed
617635 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -626,7 +644,7 @@ async def test_streaming_response_delete_by_id(self, async_client: AsyncSupermem
626644 async def test_path_params_delete_by_id (self , async_client : AsyncSupermemory ) -> None :
627645 with pytest .raises (ValueError , match = r"Expected a non-empty value for `connection_id` but received ''" ):
628646 await async_client .connections .with_raw_response .delete_by_id (
629- "" ,
647+ connection_id = "" ,
630648 )
631649
632650 @pytest .mark .skip (reason = "Mock server tests are disabled" )
0 commit comments