Skip to content

Commit

Permalink
Test the default CM class in case it is not the expected one
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Nov 23, 2023
1 parent b8f4697 commit 6875c84
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import pytest
from jupyter_client.kernelspec import find_kernel_specs, get_kernel_spec
from jupyter_server.serverapp import ServerApp
from jupyter_server.services.contents.largefilemanager import (
AsyncLargeFileManager,
LargeFileManager,
Expand Down Expand Up @@ -55,7 +56,13 @@ def cwd_tmp_path(tmp_path):
yield tmp_path


@pytest.fixture(params=[LargeFileManager, AsyncLargeFileManager])
@pytest.fixture(
params={
ServerApp.contents_manager_class.default(),
LargeFileManager,
AsyncLargeFileManager,
}
)
def cm(request, tmp_path):
"""Returns a TextContentsManager"""
return jupytext.build_jupytext_contents_manager_class(request.param)()
Expand Down

0 comments on commit 6875c84

Please sign in to comment.