fix: update_memory endpoint passing dict instead of str (#3933) (#4595)

This commit is contained in:
Shaik Faizan Roshan Ali
2026-04-02 19:35:09 +05:30
committed by GitHub
parent 868b63af63
commit 66d34fab3c
3 changed files with 69 additions and 8 deletions
+3 -3
View File
@@ -94,7 +94,7 @@ class TestAuthDisabled:
assert resp.status_code == 200
def test_update_memory_without_key(self):
resp = self.client.put("/memories/mem-1", json={"data": "updated"})
resp = self.client.put("/memories/mem-1", json={"text": "updated"})
assert resp.status_code == 200
def test_history_without_key(self):
@@ -276,7 +276,7 @@ class TestAuthEnabled:
assert resp.status_code == 200
def test_update_memory_with_key(self):
resp = self._authed("PUT", "/memories/mem-1", json={"data": "updated"})
resp = self._authed("PUT", "/memories/mem-1", json={"text": "updated"})
assert resp.status_code == 200
def test_history_with_key(self):
@@ -346,7 +346,7 @@ class TestAuthenticatedCRUDFlow:
self.mock.search.assert_called_once()
# 5. Update
resp = self._authed("PUT", "/memories/mem-1", json={"data": "updated content"})
resp = self._authed("PUT", "/memories/mem-1", json={"text": "updated content"})
assert resp.status_code == 200
self.mock.update.assert_called_once()