Skip to content

Commit 6875c84

Browse files
committed
Test the default CM class in case it is not the expected one
1 parent b8f4697 commit 6875c84

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/conftest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import pytest
99
from jupyter_client.kernelspec import find_kernel_specs, get_kernel_spec
10+
from jupyter_server.serverapp import ServerApp
1011
from jupyter_server.services.contents.largefilemanager import (
1112
AsyncLargeFileManager,
1213
LargeFileManager,
@@ -55,7 +56,13 @@ def cwd_tmp_path(tmp_path):
5556
yield tmp_path
5657

5758

58-
@pytest.fixture(params=[LargeFileManager, AsyncLargeFileManager])
59+
@pytest.fixture(
60+
params={
61+
ServerApp.contents_manager_class.default(),
62+
LargeFileManager,
63+
AsyncLargeFileManager,
64+
}
65+
)
5966
def cm(request, tmp_path):
6067
"""Returns a TextContentsManager"""
6168
return jupytext.build_jupytext_contents_manager_class(request.param)()

0 commit comments

Comments
 (0)