selfprivacy-rest-api/tests/test_graphql/test_websocket.py

7 lines
280 B
Python
Raw Normal View History

2024-05-15 11:29:20 +00:00
def test_websocket_connection_bare(authorized_client):
client =authorized_client
with client.websocket_connect('/graphql', subprotocols=[ "graphql-transport-ws","graphql-ws"] ) as websocket:
assert websocket is not None
assert websocket.scope is not None