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.

898 B
Raw Blame
"""
Test that pool configuration constants have expected values.

These tests ensure consistency across database engines.
If values need to change, update pool_config.py and these tests together.
"""


class TestPoolConfigConstants:
    """Verify shared pool configuration constants."""

    def test_pool_pre_ping_is_true(self):
        from local_deep_research.database.pool_config import POOL_PRE_PING

        assert POOL_PRE_PING is True

    def test_pool_recycle_seconds_value(self):
        from local_deep_research.database.pool_config import (
            POOL_RECYCLE_SECONDS,
        )

        assert POOL_RECYCLE_SECONDS == 3600

    def test_pool_recycle_is_positive_integer(self):
        from local_deep_research.database.pool_config import (
            POOL_RECYCLE_SECONDS,
        )

        assert isinstance(POOL_RECYCLE_SECONDS, int)
        assert POOL_RECYCLE_SECONDS > 0