Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a0e332-3365-77c0-8491-084e9ea33ac1
26 lines
558 B
Python
26 lines
558 B
Python
"""
|
|
Shared pytest fixtures for llm-connect tests.
|
|
"""
|
|
|
|
import pytest
|
|
|
|
from llm_connect.adapter import MockLLMAdapter
|
|
from llm_connect.models import LLMResponse, RunConfig
|
|
|
|
|
|
@pytest.fixture
|
|
def run_config():
|
|
"""Default RunConfig for tests."""
|
|
return RunConfig()
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_adapter():
|
|
"""MockLLMAdapter with a predictable response."""
|
|
return MockLLMAdapter(mock_response="test response")
|
|
|
|
|
|
@pytest.fixture
|
|
def sample_response():
|
|
"""A minimal valid LLMResponse."""
|
|
return LLMResponse(content="hello", model="test-model")
|