def test_02_migrate_app(self):
     """Check migrate application removes old install correctly."""
     installed_files = self.install_old_pkg()
     # execute the migrate app
     klass = jupyter_contrib_nbextensions.application.MigrateContribNbextensionsApp  # noqa: E501
     patch_traitlets_app_logs(klass)
     jupyter_contrib_nbextensions.application.main(['migrate'])
     self.check_old_pkg_uninstalled(installed_files)
 def test_02_migrate_app(self):
     """Check migrate application removes old install correctly."""
     installed_files = self.install_old_pkg()
     # execute the migrate app
     klass = jupyter_contrib_nbextensions.application.MigrateContribNbextensionsApp  # noqa
     patch_traitlets_app_logs(klass)
     jupyter_contrib_nbextensions.application.main(['migrate'])
     self.check_old_pkg_uninstalled(installed_files)
 def setUp(self):
     """Set up test fixtures for each test."""
     (jupyter_patches, self.jupyter_dirs,
      remove_jupyter_dirs) = patch_jupyter_dirs()
     for ptch in jupyter_patches:
         ptch.start()
         self.addCleanup(ptch.stop)
     self.addCleanup(remove_jupyter_dirs)
     for klass in app_classes:
         patch_traitlets_app_logs(klass)
         klass.log_level.default_value = logging.DEBUG
Пример #4
0
 def setUp(self):
     """Set up test fixtures for each test."""
     (jupyter_patches, self.jupyter_dirs,
      remove_jupyter_dirs) = patch_jupyter_dirs()
     for ptch in jupyter_patches:
         ptch.start()
         self.addCleanup(ptch.stop)
     self.addCleanup(remove_jupyter_dirs)
     for klass in app_classes:
         patch_traitlets_app_logs(klass)
         klass.log_level.default_value = logging.DEBUG