Skip to content

Commit f2d9935

Browse files
Update test_page_config
1 parent 91c1a10 commit f2d9935

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

jupyterlab_server/handlers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def get_page_config(self) -> dict[str, Any]:
8484
base_url = self.settings.get("base_url")
8585
server_app = self.settings.get("serverapp")
8686
assert server_app is not None
87-
if server_app.allow_insecure_kernelspec_params:
87+
if hasattr(server_app, "allow_setup_custom_env_variables"):
8888
allow_setup_custom_env_variables = server_app.allow_setup_custom_env_variables
8989
else:
9090
allow_setup_custom_env_variables = False

tests/test_labapp.py

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def ispath(p):
6060

6161
nondirs = {k: v for k, v in page_config.items() if not ispath(k)}
6262
assert nondirs == {
63+
"allow_setup_custom_env_variables": False,
6364
"appName": "JupyterLab Server Application",
6465
"appNamespace": "jupyterlab_server",
6566
"appUrl": "/lab",

0 commit comments

Comments
 (0)