test: drop stale mock of nonexistent ollama.embed_text

The tenant-scoping fixture still stubbed embed_text, which does not
exist on OllamaClient - the exact mock-a-nonexistent-method pattern
that hid the original HybridRAG document-leg bug (406143e). A
regression reintroducing embed_text would have passed this suite.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QbFZyDvYksazX6nYQYZ67L
This commit is contained in:
2026-07-14 15:21:39 +02:00
co-authored by Claude Fable 5
parent bd1699115a
commit 8b4eb3b77e
+3 -1
View File
@@ -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