feat: Add chat webhook

This commit is contained in:
2026-02-24 23:13:09 -05:00
parent b76838ecba
commit 42dc2099d2
5 changed files with 110 additions and 0 deletions

View File

@@ -3,6 +3,18 @@ from unittest.mock import Mock
from src.naliiabot.bot.agent.agent import Agent, AgentConfig
from src.naliiabot.bot.factories.llm_factory import LLMFactory
from httpx import ASGITransport, AsyncClient
from naliiabotapi.main import app
@pytest.fixture(scope="function")
async def async_client():
"""Fixture para un cliente HTTP asíncrono."""
async with AsyncClient(
transport=ASGITransport(app=app),
base_url="http://localhost:8010") as client:
yield client
@pytest.fixture