Files
conference-room-booking-system/backend/tests/conftest.py

17 lines
400 B
Python

"""Test configuration and fixtures for the backend tests."""
from unittest.mock import AsyncMock
from unittest.mock import MagicMock
import pytest
from sqlalchemy.ext.asyncio import AsyncSession
type MockLogger = MagicMock
@pytest.fixture
def async_session() -> AsyncSession:
"""Fixture to provide a mocked AsyncSession for database interactions."""
return AsyncMock(spec=AsyncSession)