mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 00:58:25 -04:00
17 lines
400 B
Python
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)
|