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.

712 B
Raw Blame
"""Shared fixtures for journal_quality tests."""

import pytest

from local_deep_research.journal_quality.db import JournalQualityDB


@pytest.fixture()
def ref_db():
    """Get the reference DB (uses actual file, skips if not present).

    Does NOT trigger auto-download — in CI the DB file won't exist and
    we skip immediately instead of trying to download 200K+ sources.
    """
    db = JournalQualityDB()
    # Check if DB file exists without triggering auto-download
    db_path = db._resolve_db_path()
    if not db_path.exists():
        pytest.skip(
            "journal_quality.db not built — run journal data download first"
        )
    try:
        yield db
    finally:
        db.reset()