mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-23 23:13:58 +08:00
🔧 chore(test_websocket.py): remove unnecessary commented out code and update websocket test input
The commented out code was not needed and was cluttering the test file. The test input for the websocket was updated to use a more descriptive key name "input" instead of "type" to improve clarity and readability.
This commit is contained in:
@ -43,7 +43,5 @@ def test_websocket_endpoint_after_build(client, basic_graph_data):
|
||||
# and how your chat_manager and other classes behave. The following is just an example structure.
|
||||
with pytest.raises(WebSocketDisconnect):
|
||||
with client.websocket_connect("api/v1/chat/websocket_test") as websocket:
|
||||
websocket.send_json({"type": "test"})
|
||||
# Perform assertions here, based on what you expect the websocket to return
|
||||
# data = websocket.receive_json()
|
||||
# assert ...
|
||||
websocket.send_json({"input": "test"})
|
||||
websocket.receive_json()
|
||||
|
||||
Reference in New Issue
Block a user