Skip to content

Commit

Permalink
Update test_page_config
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiaSliusar committed Aug 14, 2024
1 parent 91c1a10 commit f2d9935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jupyterlab_server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_page_config(self) -> dict[str, Any]:
base_url = self.settings.get("base_url")
server_app = self.settings.get("serverapp")
assert server_app is not None
if server_app.allow_insecure_kernelspec_params:
if hasattr(server_app, "allow_setup_custom_env_variables"):
allow_setup_custom_env_variables = server_app.allow_setup_custom_env_variables
else:
allow_setup_custom_env_variables = False
Expand Down
1 change: 1 addition & 0 deletions tests/test_labapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def ispath(p):

nondirs = {k: v for k, v in page_config.items() if not ispath(k)}
assert nondirs == {
"allow_setup_custom_env_variables": False,
"appName": "JupyterLab Server Application",
"appNamespace": "jupyterlab_server",
"appUrl": "/lab",
Expand Down

0 comments on commit f2d9935

Please sign in to comment.