Files
flowsint/flowsint-transforms/tests/conftest.py
2025-08-13 20:08:06 +02:00

13 lines
433 B
Python

import pytest
from tests.logger import TestLogger
@pytest.fixture(autouse=True)
def mock_logger(monkeypatch):
"""Automatically replace the production Logger with TestLogger for all tests."""
monkeypatch.setattr("flowsint_core.core.logger.Logger", TestLogger)
# Mock the emit_event_task to do nothing
monkeypatch.setattr(
"flowsint_core.core.logger.emit_event_task.delay", lambda *args, **kwargs: None
)