For testing the collaboration mode and requires quite a specific setup to get a document room open. Since a number of extensions exists building on the shared model capabilities, it would be perfect if those could write pytest tests without duplicating the logic which is subject to change.
A few examples where python tests would be useful but are presently missing:
Move some fixtures from tests/conftest.py to projects/jupyter-server-ydoc/jupyter_server_ydoc/pytest_plugin.py.
Additional context
Other jupyter-server extensions (including jupyterlab, jupyterlab_server, jupyter_server_fileid and jupyter_server itself) ship with a set of fixtures in pytest_plugin module, e.g.:
Problem
For testing the collaboration mode and requires quite a specific setup to get a document room open. Since a number of extensions exists building on the shared model capabilities, it would be perfect if those could write pytest tests without duplicating the logic which is subject to change.
A few examples where python tests would be useful but are presently missing:
Proposed Solution
Move some fixtures from
tests/conftest.py
toprojects/jupyter-server-ydoc/jupyter_server_ydoc/pytest_plugin.py
.Additional context
Other jupyter-server extensions (including
jupyterlab
,jupyterlab_server
,jupyter_server_fileid
andjupyter_server
itself) ship with a set of fixtures inpytest_plugin
module, e.g.: