Skip to content

Commit

Permalink
[UNIT-TEST]: Update test webhook test
Browse files Browse the repository at this point in the history
  • Loading branch information
amadolid committed Dec 6, 2023
1 parent 2df7da2 commit f094e0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jaseci_serv/jaseci_serv/socket/tests/test_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ async def test_websocket(self):
connected, subprotocol = await communicator.connect()
self.assertTrue(connected)
response: dict = loads(await communicator.receive_from())
self.assertTrue(self.is_valid_uuid(response.pop("session_id")))
self.assertTrue(self.is_valid_uuid(response.pop("group")))
self.assertTrue(response.pop("channel").startswith("specific."))
self.assertEqual(response, {"type": "connect", "authenticated": False})

await communicator.send_to(text_data='{"test": true}')
Expand Down

0 comments on commit f094e0b

Please sign in to comment.