Files
webmail-client/backend/tests/threading/conftest.py
T

16 lines
385 B
Python
Raw Normal View History

2026-07-17 23:20:34 +02:00
"""Fixtures for threading tests: the shared rollback session + a threading env."""
from __future__ import annotations
import pytest_asyncio
from sqlalchemy.ext.asyncio import AsyncSession
from tests.threading.env import ThreadingEnv
@pytest_asyncio.fixture
async def env(db_session: AsyncSession) -> ThreadingEnv:
e = ThreadingEnv(db_session)
await e.setup()
return e