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.

548 B
Raw Blame
"""Isolate process-local collection indexing state in route tests."""

import pytest

from local_deep_research.web.routers import rag


@pytest.fixture(autouse=True)
def isolate_indexing_admission(monkeypatch):
    # Many route tests stub Thread.start, so their admitted jobs never run
    # the worker's finally block. They must not reserve another test's collection.
    monkeypatch.setattr(rag, "_active_sse_indexers", {})
    monkeypatch.setattr(rag, "_active_background_indexers", {})
    monkeypatch.setattr(rag, "_start_bg_index_locks", {})