File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ The `pytest_jupyter.jupyter_client` plugin provides an installed
40
40
that provides a factory function that starts a kernel using the ` echo ` kernel
41
41
by default.
42
42
43
+ Note: The server plugin also includes the client plugin, so you can use both
44
+ sets of fixtures with ` "pytest_jupyter.jupyter_server" ` . Both the ` client `
45
+ and ` server ` plugins also include the core fixtures.
46
+
43
47
The server fixures use the echo kernel by default. To override this behavior,
44
48
override the ` jp_server_config ` fixture and add the following config:
45
49
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ client = [
43
43
server = [
44
44
" jupyter_server>=1.21" ,
45
45
" nbformat>=5.3" ,
46
+ " pytest-jupyter[client]" ,
46
47
" pytest-tornasync>=0.6"
47
48
]
48
49
test = [
Original file line number Diff line number Diff line change 22
22
"you need. Try: `pip install 'pytest-jupyter[client]'`"
23
23
)
24
24
25
+ from pytest_jupyter import * # noqa
26
+
25
27
try :
26
28
import resource
27
29
except ImportError :
Original file line number Diff line number Diff line change 45
45
)
46
46
47
47
48
- from .jupyter_client import echo_kernel_spec # noqa
49
- from .utils import mkdir
48
+ from pytest_jupyter .utils import mkdir
50
49
51
50
# List of dependencies needed for this plugin.
52
- pytest_plugins = ["pytest_tornasync" , "pytest_jupyter" ]
51
+ pytest_plugins = ["pytest_tornasync" , "pytest_jupyter.jupyter_client " ]
53
52
54
53
55
54
@pytest .fixture
You can’t perform that action at this time.
0 commit comments