From 6875c84a1f5ab1f5a84562573b1a3afe92c07bf0 Mon Sep 17 00:00:00 2001 From: Marc Wouts Date: Tue, 13 Dec 2022 22:32:36 +0000 Subject: [PATCH] Test the default CM class in case it is not the expected one --- tests/conftest.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 20cac9e6..ab6f1b49 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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, @@ -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)()