Files
mem0/tests
chaithanyak42 60065f3792 fix(tests): fix remaining 6 failures — mock setup for v3 pipeline
- _get_all_from_vector_store: top_k -> limit (2 missed occurrences)
- test_empty_llm_response_fact_extraction (sync+async): add
  db.get_last_messages mock returning [], set custom_instructions=None,
  fix log assertion to use record.message not record.msg
- test_thinking_tags (sync+async): add embed_batch mock, db mock
  with get_last_messages=[], set custom_instructions=None

Root cause: v3 pipeline calls self.db.get_last_messages() and
self.embedding_model.embed_batch() which weren't mocked, causing
the pipeline to silently fail before reaching the LLM call.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 02:32:29 +05:30
..
2025-10-15 11:19:52 -07:00