Skip to content

Route-level tests with a mocked mem0 instance #5

@omarnagy91

Description

@omarnagy91

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions