test: align qdrant ollama verification fixtures

This commit is contained in:
2026-08-08 22:15:02 +02:00
parent ffe0afb6a7
commit 4e810af516
11 changed files with 72 additions and 44 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
from tht.workspace import load_workspace, WorkspaceError
from tht.workspace import WorkspaceError, load_workspace
def test_load_workspace_expands_env_vars(monkeypatch, tmp_path):
@@ -19,7 +19,7 @@ def test_load_workspace_expands_env_vars(monkeypatch, tmp_path):
monkeypatch.setenv("THT_VEC_HOST", "vh")
monkeypatch.setenv("THT_VEC_USER", "vu")
monkeypatch.setenv("THT_VEC_PASSWORD", "vp")
monkeypatch.setenv("THT_OLLAMA_URL", "http://ollama")
monkeypatch.setenv("THT_OLLAMA_URL", "http://embedding:11434")
monkeypatch.setenv("THT_DOCS_ROOT", str(tmp_path / "docs"))
yaml = tmp_path / "w.yaml"
yaml.write_text(
@@ -49,8 +49,8 @@ def test_load_workspace_expands_env_vars(monkeypatch, tmp_path):
" api_key: ${THT_VEC_WRITE_API_KEY}\n"
"embeddings:\n"
" base_url: ${THT_OLLAMA_URL}\n"
" model: nomic-embed-text-v2-moe\n"
" dim: 768\n"
" model: qwen3-embedding:0.6b\n"
" dim: 1024\n"
"evidence:\n"
" source_root: ${THT_DOCS_ROOT}\n"
)