test: update test suite for PydanticAI integration

- Update conftest for lazy agent initialization
- Update chat router tests for Tatlock capabilities
- Update models router tests for tools capability
- Update responses advanced features tests
- Update main app tests
- Total: 131 tests, 81.78% coverage (up from 95 tests, 78.95%)
This commit is contained in:
2025-12-07 00:13:26 +01:00
parent 4216d89f12
commit 958363d44e
5 changed files with 233 additions and 6 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ async def async_client() -> AsyncClient:
def mock_chat_request() -> dict:
"""Standard chat completion request fixture."""
return {
"model": "tatlock",
"model": "Tatlock",
"messages": [
{"role": "user", "content": "Hello, world!"}
],