Skip to content

Commit 997b405

Browse files
committed
fix: update patch paths for SentenceChunker and QdrantClient in tests
1 parent bf0c064 commit 997b405

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/chunkers/test_sentence_chunker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
class TestSentenceChunker(unittest.TestCase):
1010
def test_sentence_chunker(self):
1111
"""Test SentenceChunker functionality with mocked backend."""
12-
with patch("memos.chunkers.sentence_chunker.ChonkieSentenceChunker") as mock_chunker_cls:
13-
# Set up the mock for ChonkieSentenceChunker
12+
with patch("chonkie.SentenceChunker") as mock_chunker_cls:
13+
# Set up the mock for SentenceChunker
1414
mock_chunker = MagicMock()
1515
mock_chunks = [
1616
MagicMock(

tests/vec_dbs/test_qdrant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def config():
2828

2929
@pytest.fixture
3030
def mock_qdrant_client():
31-
with patch("memos.vec_dbs.qdrant.QdrantClient") as mockclient:
31+
with patch("qdrant_client.QdrantClient") as mockclient:
3232
yield mockclient
3333

3434

0 commit comments

Comments
 (0)