Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/chunkers/test_sentence_chunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
class TestSentenceChunker(unittest.TestCase):
def test_sentence_chunker(self):
"""Test SentenceChunker functionality with mocked backend."""
with patch("memos.chunkers.sentence_chunker.ChonkieSentenceChunker") as mock_chunker_cls:
# Set up the mock for ChonkieSentenceChunker
with patch("chonkie.SentenceChunker") as mock_chunker_cls:
# Set up the mock for SentenceChunker
mock_chunker = MagicMock()
mock_chunks = [
MagicMock(
Expand Down
2 changes: 1 addition & 1 deletion tests/vec_dbs/test_qdrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def config():

@pytest.fixture
def mock_qdrant_client():
with patch("memos.vec_dbs.qdrant.QdrantClient") as mockclient:
with patch("qdrant_client.QdrantClient") as mockclient:
yield mockclient


Expand Down
Loading