mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 21:37:31 +08:00
test update
This commit is contained in:
parent
5aa717aff7
commit
f77d704a57
@ -1,15 +1,12 @@
|
||||
import pytest
|
||||
import json
|
||||
import websockets
|
||||
import os
|
||||
|
||||
|
||||
backend_host = os.getenv("BACKEND_URL", "backend-aimingmedai")
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_chatbot_integration():
|
||||
# Send a request to the chatbot endpoint
|
||||
url = f"ws://{backend_host}:80/ws"
|
||||
url = "ws://backend-aimingmedai:80/ws"
|
||||
data = [{"content": "Hello"}]
|
||||
try:
|
||||
async with websockets.connect(url) as websocket:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user