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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user