"""Shared fixtures for Firestore session service tests.""" from __future__ import annotations import uuid import pytest import pytest_asyncio from va_agent.session import FirestoreSessionService from .fake_firestore import FakeAsyncClient @pytest_asyncio.fixture async def db(): return FakeAsyncClient() @pytest_asyncio.fixture async def service(db): prefix = f"test_{uuid.uuid4().hex[:8]}" return FirestoreSessionService(db=db, collection_prefix=prefix) @pytest.fixture def app_name(): return f"app_{uuid.uuid4().hex[:8]}" @pytest.fixture def user_id(): return f"user_{uuid.uuid4().hex[:8]}"