mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 18:36:23 +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."),
|
AsyncMock(return_value="Mocked summary."),
|
||||||
)
|
)
|
||||||
monkeypatch.setattr(
|
monkeypatch.setattr(
|
||||||
"app.indexing_pipeline.indexing_pipeline_service.embed_text",
|
"app.indexing_pipeline.indexing_pipeline_service.embed_texts",
|
||||||
MagicMock(return_value=[0.1] * _EMBEDDING_DIM),
|
MagicMock(side_effect=lambda texts: [[0.1] * _EMBEDDING_DIM for _ in texts]),
|
||||||
)
|
)
|
||||||
monkeypatch.setattr(
|
monkeypatch.setattr(
|
||||||
"app.indexing_pipeline.indexing_pipeline_service.chunk_text",
|
"app.indexing_pipeline.indexing_pipeline_service.chunk_text",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue