Skip to content

Commit

Permalink
test: Use latest jupytext==1.0.0 in unit tests
Browse files Browse the repository at this point in the history
* jupytext==1.0.0 ships sync metamanager along with async. We use sync version in tests

Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Jul 2, 2024
1 parent 7ed811c commit f3fbe6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ test-external = [
"gitpython",
"pre-commit",
# Interaction with other contents managers
# jupyter-fs==0.4.0 is async, which is not supported by Jupytext ATM
"jupyter-fs<0.4.0"
# Starting with jupyter-fs==1.0.0, there is SyncMetaManager available
"jupyter-fs==1.0.0"
]
# Coverage requirements
test-cov = [
Expand Down
4 changes: 2 additions & 2 deletions tests/external/jupyter_fs/test_jupyter_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

def fs_meta_manager(tmpdir):
try:
from jupyterfs.metamanager import MetaManager
from jupyterfs.metamanager import SyncMetaManager
except ImportError:
pytest.skip("jupyterfs is not available")

cm_class = jupytext.build_jupytext_contents_manager_class(MetaManager)
cm_class = jupytext.build_jupytext_contents_manager_class(SyncMetaManager)
logger = logging.getLogger("jupyter-fs")
cm = cm_class(parent=None, log=logger)
cm.initResource(
Expand Down

0 comments on commit f3fbe6e

Please sign in to comment.