legco_ai_assistant/backend/app/test/conftest.py

24 lines
580 B
Python

"""Shared pytest fixtures for backend tests.
All external LLM/ASR calls must be mocked. Use tmp_path for ChromaDB instances.
"""
import pytest
@pytest.fixture
def mock_llm_client(monkeypatch):
"""Mock LLM client to avoid hitting live APIs."""
pass # TODO: implement mock
@pytest.fixture
def mock_asr_client(monkeypatch):
"""Mock ASR client to avoid hitting live APIs."""
pass # TODO: implement mock
@pytest.fixture
def chroma_test_dir(tmp_path):
"""Provide a temporary directory for isolated ChromaDB instances."""
return tmp_path / "chroma_test"