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

12
tests/test_webhook.py Normal file
View File

@@ -0,0 +1,12 @@
import pytest
class TestWebhookChatBot:
"""Tests for WebhookChatBot."""
@pytest.mark.anyio
async def tests_webhook_success(self, async_client):
"""Test that the webhook endpoint returns a successful response."""
response = await async_client.post("/webhook", json={"message": "Hello"})
assert response.status_code == 200
assert response.json() == {"reply": "Hello, how can I assist you?"}