File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 8
8
9
9
from jupyterlab_server import LabServerApp
10
10
11
- pytest_plugins = ["jupyter_server.pytest_plugin " ]
11
+ pytest_plugins = ["pytest_jupyter.jupyter_server " ]
12
12
13
13
14
14
def mkdir (tmp_path , * parts ):
Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ def start(self):
61
61
workspaces = self .manager .list_workspaces ()
62
62
if self .jsonlines :
63
63
for workspace in workspaces :
64
- self . log . info (json .dumps (workspace ))
64
+ print (json .dumps (workspace )) # noqa
65
65
elif self .json :
66
- self . log . info (json .dumps (workspaces ))
66
+ print (json .dumps (workspaces )) # noqa
67
67
else :
68
68
for workspace in workspaces :
69
- self . log . info (workspace ["metadata" ]["id" ])
69
+ print (workspace ["metadata" ]["id" ]) # noqa
70
70
71
71
72
72
class WorkspaceExportApp (JupyterApp , LabConfig ):
@@ -92,7 +92,7 @@ def start(self):
92
92
raw = DEFAULT_WORKSPACE if not self .extra_args else self .extra_args [0 ]
93
93
try :
94
94
workspace = self .manager .load (raw )
95
- self . log . info (json .dumps (workspace ))
95
+ print (json .dumps (workspace )) # noqa
96
96
except Exception : # pragma: no cover
97
97
self .log .error (json .dumps (dict (data = dict (), metadata = dict (id = raw ))))
98
98
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ classifiers = [
21
21
" Programming Language :: Python :: 3.8" ,
22
22
" Programming Language :: Python :: 3.9" ,
23
23
" Programming Language :: Python :: 3.10" ,
24
+ " Programming Language :: Python :: 3.11" ,
24
25
" Typing :: Typed" ]
25
26
requires-python = " >=3.7"
26
27
dependencies = [
@@ -29,7 +30,7 @@ dependencies = [
29
30
" jinja2>=3.0.3" ,
30
31
" json5>=0.9.0" ,
31
32
" jsonschema>=3.0.1" ,
32
- " jupyter_server>=1.8 ,<3" ,
33
+ " jupyter_server>=1.21 ,<3" ,
33
34
" packaging>=21.3" ,
34
35
" requests>=2.28" ,
35
36
]
@@ -68,14 +69,15 @@ openapi = [
68
69
test = [
69
70
" codecov" ,
70
71
" ipykernel" ,
71
- " jupyter_server[test] " ,
72
+ " pytest-jupyter[server]>=0.6 " ,
72
73
# openapi_core 0.15.0 alpha is not working
73
74
" openapi_core~=0.14.2" ,
74
75
" openapi-spec-validator<0.6" ,
75
76
" requests_mock" ,
76
77
" pytest>=7.0" ,
77
78
" pytest-console-scripts" ,
78
79
" pytest-cov" ,
80
+ " pytest-timeout" ,
79
81
" ruamel.yaml" ,
80
82
" strict-rfc3339"
81
83
]
You can’t perform that action at this time.
0 commit comments