"""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