@@ -27,8 +27,7 @@ class TestMemories:
2727 @parametrize
2828 def test_method_update (self , client : Supermemory ) -> None :
2929 memory = client .memories .update (
30- path_id = "id" ,
31- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
30+ id = "id" ,
3231 content = "This is a detailed article about machine learning concepts..." ,
3332 )
3433 assert_matches_type (MemoryUpdateResponse , memory , path = ["response" ])
@@ -37,8 +36,7 @@ def test_method_update(self, client: Supermemory) -> None:
3736 @parametrize
3837 def test_method_update_with_all_params (self , client : Supermemory ) -> None :
3938 memory = client .memories .update (
40- path_id = "id" ,
41- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
39+ id = "id" ,
4240 content = "This is a detailed article about machine learning concepts..." ,
4341 container_tags = ["string" ],
4442 metadata = {
@@ -56,8 +54,7 @@ def test_method_update_with_all_params(self, client: Supermemory) -> None:
5654 @parametrize
5755 def test_raw_response_update (self , client : Supermemory ) -> None :
5856 response = client .memories .with_raw_response .update (
59- path_id = "id" ,
60- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
57+ id = "id" ,
6158 content = "This is a detailed article about machine learning concepts..." ,
6259 )
6360
@@ -70,8 +67,7 @@ def test_raw_response_update(self, client: Supermemory) -> None:
7067 @parametrize
7168 def test_streaming_response_update (self , client : Supermemory ) -> None :
7269 with client .memories .with_streaming_response .update (
73- path_id = "id" ,
74- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
70+ id = "id" ,
7571 content = "This is a detailed article about machine learning concepts..." ,
7672 ) as response :
7773 assert not response .is_closed
@@ -85,10 +81,9 @@ def test_streaming_response_update(self, client: Supermemory) -> None:
8581 @pytest .mark .skip ()
8682 @parametrize
8783 def test_path_params_update (self , client : Supermemory ) -> None :
88- with pytest .raises (ValueError , match = r"Expected a non-empty value for `path_id ` but received ''" ):
84+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `id ` but received ''" ):
8985 client .memories .with_raw_response .update (
90- path_id = "" ,
91- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
86+ id = "" ,
9287 content = "This is a detailed article about machine learning concepts..." ,
9388 )
9489
@@ -275,8 +270,7 @@ class TestAsyncMemories:
275270 @parametrize
276271 async def test_method_update (self , async_client : AsyncSupermemory ) -> None :
277272 memory = await async_client .memories .update (
278- path_id = "id" ,
279- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
273+ id = "id" ,
280274 content = "This is a detailed article about machine learning concepts..." ,
281275 )
282276 assert_matches_type (MemoryUpdateResponse , memory , path = ["response" ])
@@ -285,8 +279,7 @@ async def test_method_update(self, async_client: AsyncSupermemory) -> None:
285279 @parametrize
286280 async def test_method_update_with_all_params (self , async_client : AsyncSupermemory ) -> None :
287281 memory = await async_client .memories .update (
288- path_id = "id" ,
289- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
282+ id = "id" ,
290283 content = "This is a detailed article about machine learning concepts..." ,
291284 container_tags = ["string" ],
292285 metadata = {
@@ -304,8 +297,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncSupermemor
304297 @parametrize
305298 async def test_raw_response_update (self , async_client : AsyncSupermemory ) -> None :
306299 response = await async_client .memories .with_raw_response .update (
307- path_id = "id" ,
308- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
300+ id = "id" ,
309301 content = "This is a detailed article about machine learning concepts..." ,
310302 )
311303
@@ -318,8 +310,7 @@ async def test_raw_response_update(self, async_client: AsyncSupermemory) -> None
318310 @parametrize
319311 async def test_streaming_response_update (self , async_client : AsyncSupermemory ) -> None :
320312 async with async_client .memories .with_streaming_response .update (
321- path_id = "id" ,
322- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
313+ id = "id" ,
323314 content = "This is a detailed article about machine learning concepts..." ,
324315 ) as response :
325316 assert not response .is_closed
@@ -333,10 +324,9 @@ async def test_streaming_response_update(self, async_client: AsyncSupermemory) -
333324 @pytest .mark .skip ()
334325 @parametrize
335326 async def test_path_params_update (self , async_client : AsyncSupermemory ) -> None :
336- with pytest .raises (ValueError , match = r"Expected a non-empty value for `path_id ` but received ''" ):
327+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `id ` but received ''" ):
337328 await async_client .memories .with_raw_response .update (
338- path_id = "" ,
339- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
329+ id = "" ,
340330 content = "This is a detailed article about machine learning concepts..." ,
341331 )
342332
0 commit comments