Skip to content

Commit 367baac

Browse files
committed
Another attempt
1 parent ea3c068 commit 367baac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import pytest
22
from src.config.config import Config
33
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
412

513

614
@pytest.fixture(autouse=True)

0 commit comments

Comments
 (0)