mirror of
https://github.com/reconurge/flowsint.git
synced 2026-05-02 20:29:30 -05:00
13 lines
433 B
Python
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
|
|
)
|