From c0a675a56ba8660aa7b0859c84fa296ed441396d Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 3 Apr 2024 13:08:25 +0200 Subject: [PATCH] jp_ws_fetch: passthrough kwargs to websocket_connect (#78) allows setting things like subprotocols --- pytest_jupyter/jupyter_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_jupyter/jupyter_server.py b/pytest_jupyter/jupyter_server.py index c686577..1c84fe4 100644 --- a/pytest_jupyter/jupyter_server.py +++ b/pytest_jupyter/jupyter_server.py @@ -328,7 +328,7 @@ def client_fetch(*parts, headers=None, params=None, **kwargs): headers.setdefault(key, value) # Make request. req = tornado.httpclient.HTTPRequest(url, headers=headers, connect_timeout=120) - return tornado.websocket.websocket_connect(req) + return tornado.websocket.websocket_connect(req, **kwargs) return client_fetch