conftest.py 402 B

12345678910111213141516
  1. """Pytest configuration for template tests."""
  2. from unittest.mock import MagicMock
  3. import pytest
  4. @pytest.fixture(autouse=True)
  5. def mock_graph_service(monkeypatch):
  6. """Mock the graph service to avoid Neo4j calls during tests."""
  7. mock = MagicMock()
  8. monkeypatch.setattr(
  9. "flowsint_core.core.enricher_base.create_graph_service",
  10. lambda **kwargs: mock,
  11. )
  12. return mock