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.

711 B
Raw Blame
"""
Pytest configuration for strategy tests.

Sets up necessary fixtures and configurations for testing advanced search strategies.
"""

import pytest
from loguru import logger


def pytest_configure(config):
    """Configure pytest hooks."""
    # Add custom MILESTONE log level if it doesn't exist
    try:
        logger.level("MILESTONE")
    except ValueError:
        logger.level("MILESTONE", no=25, color="<cyan>", icon="🎯")


@pytest.fixture(autouse=True)
def setup_milestone_logger():
    """Ensure MILESTONE log level exists for tests that use it."""
    try:
        logger.level("MILESTONE")
    except ValueError:
        logger.level("MILESTONE", no=25, color="<cyan>", icon="🎯")
    yield