mock_jupyter_websocket#

rubin.nublado.client.mock_jupyter_websocket(url, headers, jupyter)#

Create a new mock ClientWebSocketResponse that simulates a lab.

Parameters:
  • url (str) – URL of the request to open a WebSocket.

  • headers (dict[str, str]) – Extra headers sent with that request.

  • jupyter (MockJupyter) – Mock JupyterHub.

Returns:

Mock WebSocket connection.

Return type:

MockJupyterWebSocket