mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
Fix Mem0 OSS (#2604)
* Fix Mem0 OSS * add test * fix lint and tests * fix * add tests * drop test * changed to class comparision * fixed test cases * Update src/crewai/memory/storage/mem0_storage.py * Update src/crewai/memory/storage/mem0_storage.py * fix * fix lock file --------- Co-authored-by: Vidit-Ostwal <viditostwal@gmail.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
@@ -65,4 +64,4 @@ def test_save_and_search(user_memory):
|
||||
with patch.object(UserMemory, 'search', return_value=expected_result) as mock_search:
|
||||
find = UserMemory.search("test value", score_threshold=0.01)[0]
|
||||
mock_search.assert_called_once_with("test value", score_threshold=0.01)
|
||||
assert find == expected_result[0]
|
||||
assert find == expected_result[0]
|
||||
|
||||
Reference in New Issue
Block a user