diff --git a/tests/test_tenant_scoping.py b/tests/test_tenant_scoping.py index 53e39de..526d906 100644 --- a/tests/test_tenant_scoping.py +++ b/tests/test_tenant_scoping.py @@ -55,7 +55,9 @@ def mock_ollama(): ollama.embed_batch = AsyncMock( side_effect=lambda texts, **kw: [[0.1] * 768 for _ in texts] ) - ollama.embed_text = AsyncMock(return_value=[0.1] * 768) + # NOTE: do not stub methods that don't exist on OllamaClient (a stale + # embed_text stub here previously hid a latent AttributeError in the + # HybridRAG document leg - see 406143e). ollama.generate_text = AsyncMock(return_value="{}") return ollama