"""Integration tests configuration.""" import logging import pytest import structlog @pytest.fixture(scope="session", autouse=True) def configure_logging() -> None: """Configure logging for the test session.""" structlog.configure( processors=[ structlog.stdlib.filter_by_level, structlog.stdlib.add_logger_name, structlog.stdlib.add_log_level, structlog.processors.TimeStamper(fmt="iso"), structlog.processors.JSONRenderer(), ], logger_factory=structlog.stdlib.LoggerFactory(), wrapper_class=structlog.stdlib.BoundLogger, cache_logger_on_first_use=True, ) logging.basicConfig(level=logging.ERROR)