🔧 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:
parent
9217386dbc
commit
d96a2d70ac
1 changed files with 2 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue