Skip to content

test: mock Mem0 in Agent serde tests#435

Merged
anakin87 merged 2 commits intomainfrom
patch-api-keys-agent
Feb 6, 2026
Merged

test: mock Mem0 in Agent serde tests#435
anakin87 merged 2 commits intomainfrom
patch-api-keys-agent

Conversation

@anakin87
Copy link
Member

@anakin87 anakin87 commented Feb 6, 2026

Related Issues

Reviewing #434 and running hatch run test:unit, I got errors due to missing Mem0 API keys: https://github.com/deepset-ai/haystack-experimental/actions/runs/21728424033/job/62735337466

Unit tests should not require API keys

Proposed Changes:

  • move mock_memory_client (already used in some tests) to conftest
  • monkey patch API keys

How did you test it?

CI

Checklist

@coveralls
Copy link

coveralls commented Feb 6, 2026

Pull Request Test Coverage Report for Build 21755483564

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 57.682%

Totals Coverage Status
Change from base Build 21754713595: 0.0%
Covered Lines: 672
Relevant Lines: 1165

💛 - Coveralls

@anakin87 anakin87 self-assigned this Feb 6, 2026
@anakin87 anakin87 marked this pull request as ready for review February 6, 2026 15:15
@anakin87 anakin87 requested a review from a team as a code owner February 6, 2026 15:15
@anakin87 anakin87 requested review from sjrl and removed request for a team February 6, 2026 15:15
Copy link
Contributor

@sjrl sjrl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@anakin87 anakin87 merged commit b3eef64 into main Feb 6, 2026
8 checks passed
@anakin87 anakin87 deleted the patch-api-keys-agent branch February 6, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants