21 lines
646 B
Python
21 lines
646 B
Python
import pytest
|
|
|
|
from haiku.rag.agents.analysis.dependencies import AnalysisContext
|
|
from haiku.rag.agents.analysis.sandbox import Sandbox
|
|
from haiku.rag.client import HaikuRAG
|
|
from haiku.rag.config.models import AppConfig
|
|
|
|
|
|
@pytest.fixture
|
|
async def empty_client(temp_db_path):
|
|
"""Create an empty HaikuRAG client without documents."""
|
|
async with HaikuRAG(temp_db_path, create=True) as client:
|
|
yield client
|
|
|
|
|
|
@pytest.fixture
|
|
async def sandbox(empty_client):
|
|
"""Create a Monty sandbox for testing."""
|
|
config = AppConfig()
|
|
context = AnalysisContext()
|
|
return Sandbox(client=empty_client, config=config, context=context)
|