def test_disable_extension(self): app_dir = self.tempdir() install_extension(self.source_dir, app_dir) disable_extension('@jupyterlab/python-tests', app_dir) disabled = _get_disabled(app_dir) assert '@jupyterlab/python-tests' in disabled disable_extension('@jupyterlab/notebook-extension', app_dir) disabled = _get_disabled(app_dir) assert '@jupyterlab/notebook-extension' in disabled
def test_disable_extension(self): app_dir = self.tempdir() install_extension(self.source_dir, app_dir) disable_extension('@jupyterlab/python-tests', app_dir) disabled = _get_disabled(app_dir) assert '@jupyterlab/python-tests' in disabled disable_extension('@jupyterlab/notebook-extension', app_dir) disabled = _get_disabled(app_dir) assert '@jupyterlab/notebook-extension' in disabled
def test_enable_extension(self): app_dir = self.tempdir() install_extension(self.mock_extension, app_dir) disable_extension('@jupyterlab/python-tests', app_dir) enable_extension('@jupyterlab/python-tests', app_dir) disabled = _get_disabled(app_dir) assert '@jupyterlab/python-tests' not in disabled