fix: address review — re-mine modified files, idempotent add_drawer, cleanup ChromaDB handles

This commit is contained in:
Igor Lins e Silva
2026-04-07 17:44:19 -03:00
parent a4149ab248
commit bf88daa649
4 changed files with 79 additions and 63 deletions
+3 -1
View File
@@ -102,7 +102,9 @@ def collection(palace_path):
"""A ChromaDB collection pre-seeded in the temp palace."""
client = chromadb.PersistentClient(path=palace_path)
col = client.get_or_create_collection("mempalace_drawers")
return col
yield col
client.delete_collection("mempalace_drawers")
del client
@pytest.fixture