🔧 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:
Gabriel Luiz Freitas Almeida 2023-06-30 17:16:41 -03:00
commit d96a2d70ac

View file

@ -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()