test: refactor Gmail indexer tests to utilize ComposioService and hybrid chunking

This commit is contained in:
Anish Sarkar 2026-05-16 21:26:40 +05:30
parent a0f2563dc3
commit cb9a0f327c
3 changed files with 44 additions and 24 deletions

View file

@ -200,7 +200,7 @@ async def test_reindex_sets_status_ready(db_session, db_search_space, db_user, m
async def test_reindex_replaces_chunks(db_session, db_search_space, db_user, mocker):
"""Reindexing replaces old chunks with new content rather than appending."""
mocker.patch(
"app.indexing_pipeline.indexing_pipeline_service.chunk_text",
"app.indexing_pipeline.indexing_pipeline_service.chunk_text_hybrid",
side_effect=[["Original chunk."], ["Updated chunk."]],
)