Fix memory page to use local store
This commit is contained in:
@@ -44,6 +44,15 @@ def test_memory_api_stores_workspace_scoped_notes(tmp_path, monkeypatch):
|
||||
assert "Different workspace note." not in str(search)
|
||||
|
||||
|
||||
def test_memory_search_returns_empty_local_result_without_vector_warning(tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("DUCK_DB_PATH", str(tmp_path / "duck.sqlite3"))
|
||||
client = TestClient(create_app())
|
||||
|
||||
response = client.get("/v1/memory/search", params={"q": "missing memory"}).json()
|
||||
|
||||
assert response == {"results": []}
|
||||
|
||||
|
||||
async def test_memory_store_searches_text_and_metadata(tmp_path):
|
||||
store = MemoryStore(str(tmp_path / "duck.sqlite3"))
|
||||
await store.init()
|
||||
|
||||
Reference in New Issue
Block a user