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
4040that provides a factory function that starts a kernel using the ` echo ` kernel
4141by default.
4242
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+
4347The server fixures use the echo kernel by default. To override this behavior,
4448override the ` jp_server_config ` fixture and add the following config:
4549
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ client = [
4343server = [
4444 " jupyter_server>=1.21" ,
4545 " nbformat>=5.3" ,
46+ " pytest-jupyter[client]" ,
4647 " pytest-tornasync>=0.6"
4748]
4849test = [
Original file line number Diff line number Diff line change 2222 "you need. Try: `pip install 'pytest-jupyter[client]'`"
2323 )
2424
25+ from pytest_jupyter import * # noqa
26+
2527try :
2628 import resource
2729except ImportError :
Original file line number Diff line number Diff line change 4545 )
4646
4747
48- from .jupyter_client import echo_kernel_spec # noqa
49- from .utils import mkdir
48+ from pytest_jupyter .utils import mkdir
5049
5150# List of dependencies needed for this plugin.
52- pytest_plugins = ["pytest_tornasync" , "pytest_jupyter" ]
51+ pytest_plugins = ["pytest_tornasync" , "pytest_jupyter.jupyter_client " ]
5352
5453
5554@pytest .fixture
You can’t perform that action at this time.
0 commit comments