mirror of
https://github.com/reconurge/flowsint.git
synced 2026-07-15 21:23:01 -05:00
17 lines
402 B
Python
17 lines
402 B
Python
"""Pytest configuration for template tests."""
|
|
|
|
from unittest.mock import MagicMock
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def mock_graph_service(monkeypatch):
|
|
"""Mock the graph service to avoid Neo4j calls during tests."""
|
|
mock = MagicMock()
|
|
monkeypatch.setattr(
|
|
"flowsint_core.core.enricher_base.create_graph_service",
|
|
lambda **kwargs: mock,
|
|
)
|
|
return mock
|