"""
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
