I am trying to reuse the jupyter_server ContentsManager tests for a custom ContentsManager I am working on. I am trying to import them according to the documentation here.
I am importing with:
import jupyter_server.services.contents.tests
However when I run this I get:
ModuleNotFoundError: No module named 'jupyter_server.services.contents.tests'
my environment:
os: ubuntu 18.04
package_manager: conda
channel: conda-forge
python: 3.9.1
jupyterlab: 3.0.5
jupyter_server: 1.2.2
I think the documentation was probably just updated switching out notebook for jupyter_server when the ContentsManager class was moved, but the tests were restructured so that they are no longer accessible from that location. I assume either the tests should be added back to the importable package, or the docs just need to be updated to reflect the changes.