Skip to content

Commit bf77285

Browse files
committed
Add fixture for LargeFileManager class
1 parent a2e1bcf commit bf77285

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pytest_jupyter/jupyter_server.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from jupyter_server.serverapp import ServerApp
1616
from jupyter_server.utils import url_path_join
1717
from jupyter_server.services.contents.filemanager import FileContentsManager
18+
from jupyter_server.services.contents.largefilemanager import LargeFileManager
1819
from tornado.escape import url_escape
1920
from traitlets.config import Config
2021

@@ -259,6 +260,12 @@ def jp_contents_manager(request, tmp_path):
259260
return FileContentsManager(root_dir=str(tmp_path), use_atomic_writing=request.param)
260261

261262

263+
@pytest.fixture
264+
def jp_large_contents_manager(tmp_path):
265+
"""Returns a LargeFileManager instance."""
266+
return LargeFileManager(root_dir=str(tmp_path))
267+
268+
262269
@pytest.fixture
263270
def jp_create_notebook(jp_root_dir):
264271
"""Creates a notebook in the test's home directory."""

0 commit comments

Comments
 (0)