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