mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
fix: update stale embed_text mock in document_upload tests
This commit is contained in:
parent
fffef4cb5e
commit
e951fbb991
1 changed files with 2 additions and 2 deletions
|
|
@ -263,8 +263,8 @@ def _mock_external_apis(monkeypatch):
|
|||
AsyncMock(return_value="Mocked summary."),
|
||||
)
|
||||
monkeypatch.setattr(
|
||||
"app.indexing_pipeline.indexing_pipeline_service.embed_text",
|
||||
MagicMock(return_value=[0.1] * _EMBEDDING_DIM),
|
||||
"app.indexing_pipeline.indexing_pipeline_service.embed_texts",
|
||||
MagicMock(side_effect=lambda texts: [[0.1] * _EMBEDDING_DIM for _ in texts]),
|
||||
)
|
||||
monkeypatch.setattr(
|
||||
"app.indexing_pipeline.indexing_pipeline_service.chunk_text",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue