Today the pure-function modules (categorizer, extractor, importer, models) are unit-tested, but the FastAPI routes are not. A fixture that injects a mocked mem0 client would let us test /add, /search, /context, and /reflect without a live Qdrant or an API key.
Acceptance: a pytest fixture mocking mem0, plus tests for the main routes returning correct shapes and status codes; runs offline in CI.
Today the pure-function modules (
categorizer,extractor,importer,models) are unit-tested, but the FastAPI routes are not. A fixture that injects a mocked mem0 client would let us test/add,/search,/context, and/reflectwithout a live Qdrant or an API key.Acceptance: a pytest fixture mocking mem0, plus tests for the main routes returning correct shapes and status codes; runs offline in CI.