From 9763054cff8f6b9249a59249488e08e92c05d63a Mon Sep 17 00:00:00 2001 From: Andrii Ieroshenko Date: Tue, 12 Sep 2023 23:57:39 -0700 Subject: [PATCH] update server test config --- .../ui-tests/jupyter_server_test_config.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/jupyter-ai/ui-tests/jupyter_server_test_config.py b/packages/jupyter-ai/ui-tests/jupyter_server_test_config.py index f2a94782a..23d06f6dd 100644 --- a/packages/jupyter-ai/ui-tests/jupyter_server_test_config.py +++ b/packages/jupyter-ai/ui-tests/jupyter_server_test_config.py @@ -4,9 +4,17 @@ opens the server to the world and provide access to JupyterLab JavaScript objects through the global window variable. """ -from jupyterlab.galata import configure_jupyter_server +from tempfile import mkdtemp -configure_jupyter_server(c) +c.ServerApp.port = 8888 +c.ServerApp.port_retries = 0 +c.ServerApp.open_browser = False + +c.ServerApp.root_dir = mkdtemp(prefix="galata-test-") +c.ServerApp.token = "" +c.ServerApp.password = "" +c.ServerApp.disable_check_xsrf = True +c.LabApp.expose_app_in_browser = True # Uncomment to set server log level to debug level # c.ServerApp.log_level = "DEBUG"