From d96a2d70aca02629eb2e72df4af37da6b4955ca4 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 30 Jun 2023 17:16:41 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(test=5Fwebsocket.py):=20re?= =?UTF-8?q?move=20unnecessary=20commented=20out=20code=20and=20update=20we?= =?UTF-8?q?bsocket=20test=20input=20The=20commented=20out=20code=20was=20n?= =?UTF-8?q?ot=20needed=20and=20was=20cluttering=20the=20test=20file.=20The?= =?UTF-8?q?=20test=20input=20for=20the=20websocket=20was=20updated=20to=20?= =?UTF-8?q?use=20a=20more=20descriptive=20key=20name=20"input"=20instead?= =?UTF-8?q?=20of=20"type"=20to=20improve=20clarity=20and=20readability.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_websocket.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_websocket.py b/tests/test_websocket.py index 0199ff14b..57a0e95f6 100644 --- a/tests/test_websocket.py +++ b/tests/test_websocket.py @@ -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()