@@ -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 = ["user_123" , "project_123" ],
4442 custom_id = "mem_abc123" ,
@@ -57,8 +55,7 @@ def test_method_update_with_all_params(self, client: Supermemory) -> None:
5755 @parametrize
5856 def test_raw_response_update (self , client : Supermemory ) -> None :
5957 response = client .memories .with_raw_response .update (
60- path_id = "id" ,
61- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
58+ id = "id" ,
6259 content = "This is a detailed article about machine learning concepts..." ,
6360 )
6461
@@ -71,8 +68,7 @@ def test_raw_response_update(self, client: Supermemory) -> None:
7168 @parametrize
7269 def test_streaming_response_update (self , client : Supermemory ) -> None :
7370 with client .memories .with_streaming_response .update (
74- path_id = "id" ,
75- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
71+ id = "id" ,
7672 content = "This is a detailed article about machine learning concepts..." ,
7773 ) as response :
7874 assert not response .is_closed
@@ -86,10 +82,9 @@ def test_streaming_response_update(self, client: Supermemory) -> None:
8682 @pytest .mark .skip ()
8783 @parametrize
8884 def test_path_params_update (self , client : Supermemory ) -> None :
89- with pytest .raises (ValueError , match = r"Expected a non-empty value for `path_id ` but received ''" ):
85+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `id ` but received ''" ):
9086 client .memories .with_raw_response .update (
91- path_id = "" ,
92- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
87+ id = "" ,
9388 content = "This is a detailed article about machine learning concepts..." ,
9489 )
9590
@@ -311,8 +306,7 @@ class TestAsyncMemories:
311306 @parametrize
312307 async def test_method_update (self , async_client : AsyncSupermemory ) -> None :
313308 memory = await async_client .memories .update (
314- path_id = "id" ,
315- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
309+ id = "id" ,
316310 content = "This is a detailed article about machine learning concepts..." ,
317311 )
318312 assert_matches_type (MemoryUpdateResponse , memory , path = ["response" ])
@@ -321,8 +315,7 @@ async def test_method_update(self, async_client: AsyncSupermemory) -> None:
321315 @parametrize
322316 async def test_method_update_with_all_params (self , async_client : AsyncSupermemory ) -> None :
323317 memory = await async_client .memories .update (
324- path_id = "id" ,
325- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
318+ id = "id" ,
326319 content = "This is a detailed article about machine learning concepts..." ,
327320 container_tags = ["user_123" , "project_123" ],
328321 custom_id = "mem_abc123" ,
@@ -341,8 +334,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncSupermemor
341334 @parametrize
342335 async def test_raw_response_update (self , async_client : AsyncSupermemory ) -> None :
343336 response = await async_client .memories .with_raw_response .update (
344- path_id = "id" ,
345- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
337+ id = "id" ,
346338 content = "This is a detailed article about machine learning concepts..." ,
347339 )
348340
@@ -355,8 +347,7 @@ async def test_raw_response_update(self, async_client: AsyncSupermemory) -> None
355347 @parametrize
356348 async def test_streaming_response_update (self , async_client : AsyncSupermemory ) -> None :
357349 async with async_client .memories .with_streaming_response .update (
358- path_id = "id" ,
359- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
350+ id = "id" ,
360351 content = "This is a detailed article about machine learning concepts..." ,
361352 ) as response :
362353 assert not response .is_closed
@@ -370,10 +361,9 @@ async def test_streaming_response_update(self, async_client: AsyncSupermemory) -
370361 @pytest .mark .skip ()
371362 @parametrize
372363 async def test_path_params_update (self , async_client : AsyncSupermemory ) -> None :
373- with pytest .raises (ValueError , match = r"Expected a non-empty value for `path_id ` but received ''" ):
364+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `id ` but received ''" ):
374365 await async_client .memories .with_raw_response .update (
375- path_id = "" ,
376- body_id = "acxV5LHMEsG2hMSNb4umbn" ,
366+ id = "" ,
377367 content = "This is a detailed article about machine learning concepts..." ,
378368 )
379369
0 commit comments