Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

test(embeddings): isolate empty-cache download fixtures (#6999)

LearningCircuitac8238454160
diff --git a/tests/embeddings/test_sentence_transformer_model_catalog.py b/tests/embeddings/test_sentence_transformer_model_catalog.py
index 74cea3946e..0d7d41fb4e 100644
--- a/tests/embeddings/test_sentence_transformer_model_catalog.py
+++ b/tests/embeddings/test_sentence_transformer_model_catalog.py
@@ -77,11 +77,14 @@ def test_catalog_resolves_legacy_key_and_full_repository_alias():
)
-def test_public_curated_legacy_model_can_download_without_repinning():
+def test_public_curated_legacy_model_can_download_without_repinning(
+ tmp_path, monkeypatch
+):
from local_deep_research.embeddings.providers.implementations.sentence_transformers import (
SentenceTransformersProvider,
)
+ _isolate_hub_cache(tmp_path, monkeypatch)
stub = object()
with (
patch.object(
@@ -387,12 +390,14 @@ def test_cache_miss_download_requires_public_capability(
)
def test_explicit_public_capability_allows_curated_cache_miss(
settings_snapshot,
+ tmp_path,
monkeypatch,
):
from local_deep_research.embeddings.providers.implementations.sentence_transformers import (
SentenceTransformersProvider,
)
+ _isolate_hub_cache(tmp_path, monkeypatch)
if settings_snapshot["policy.egress_scope"] == "unprotected":
monkeypatch.setenv("LDR_POLICY_ALLOW_UNPROTECTED_EGRESS", "true")