def test_extension_manager_linked_extensions(jp_serverapp): name = "jupyter_server.tests.extension.mockextensions" manager = ExtensionManager() manager.add_extension(name, enabled=True) manager.link_extension(name, jp_serverapp) assert name in manager.linked_extensions
def test_extension_manager_api(): jpserver_extensions = {"tests.extension.mockextensions": True} manager = ExtensionManager() manager.from_jpserver_extensions(jpserver_extensions) assert len(manager.extensions) == 1 assert "tests.extension.mockextensions" in manager.extensions