We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3c068 commit 367baacCopy full SHA for 367baac
tests/conftest.py
@@ -1,6 +1,14 @@
1
import pytest
2
from src.config.config import Config
3
import os
4
+from unittest.mock import patch
5
+
6
7
+@pytest.fixture(autouse=True)
8
+def mock_database():
9
+ """Mock database initialization for all tests."""
10
+ with patch("src.backend.database.Database.__init__", return_value=None):
11
+ yield
12
13
14
@pytest.fixture(autouse=True)
0 commit comments