File tree 5 files changed +15
-9
lines changed 5 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 78
78
79
79
# Integration test
80
80
python -m pip install .
81
+ jupyter server extension list
81
82
jupyter server extension list 2>&1 | grep -ie "jupyterlab_git.*OK"
82
-
83
+ jupyter labextension list
83
84
jupyter labextension list 2>&1 | grep -ie "@jupyterlab/git.*OK"
84
85
python -m jupyterlab.browser_check
85
86
Original file line number Diff line number Diff line change 1
1
import pytest
2
2
3
- pytest_plugins = ["jupyter_server.pytest_plugin " ]
3
+ pytest_plugins = ["pytest_jupyter.jupyter_server " ]
4
4
5
5
6
6
@pytest .fixture
Original file line number Diff line number Diff line change 10
10
import tornado
11
11
from jupyter_server .base .handlers import APIHandler , path_regex
12
12
from jupyter_server .services .contents .manager import ContentsManager
13
- from jupyter_server .utils import url2path , url_path_join
13
+ from jupyter_server .utils import url2path , url_path_join , ensure_async
14
14
from packaging .version import parse
15
15
import fnmatch
16
16
@@ -38,9 +38,9 @@ class GitHandler(APIHandler):
38
38
def git (self ) -> Git :
39
39
return self .settings ["git" ]
40
40
41
- def prepare (self ):
41
+ async def prepare (self ):
42
42
"""Check if the path should be skipped"""
43
- super ().prepare ()
43
+ await ensure_async ( super ().prepare () )
44
44
path = self .path_kwargs .get ("path" )
45
45
if path is not None :
46
46
excluded_paths = self .git .excluded_paths
Original file line number Diff line number Diff line change 9
9
10
10
11
11
pytest .importorskip ("hybridcontents" )
12
+ # FIXME requires hybridcontents update to Jupyter Server 2
13
+ pytestmark = pytest .mark .skipif (
14
+ True , reason = "hybridcontents is not compatible with Jupyter Server 2"
15
+ )
12
16
13
17
14
18
@pytest .fixture
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ classifiers =
22
22
[options]
23
23
packages = find:
24
24
install_requires =
25
- jupyter_server
25
+ jupyter_server>=1.21.0,<3
26
26
nbdime~=3.1
27
27
nbformat
28
28
packaging
42
42
pytest
43
43
pytest-asyncio
44
44
pytest-cov
45
- pytest-tornasync
45
+ pytest-jupyter[server]>=0.6
46
46
tests =
47
47
%(dev)s
48
48
hybridcontents
49
- jupyter-archive
50
49
jupytext
51
-
50
+ ui-tests =
51
+ %(tests)s
52
+ jupyter-archive
You can’t perform that action at this time.
0 commit comments