def testConfigBrowser(self):
     global test
     logging.debug(self.__class__.__name__ +': testRun()')
     self.app=Application(sys.argv)
     self.app.mainWindow().setWindowTitle("test ConfigBrowser")
     self.app.openFile(os.path.join(examplesDirectory,"patLayer1_fromAOD_full_cfg.py"))
     if not hasattr(unittest,"NO_GUI_TEST"):
         self.app.run()
Beispiel #2
0
 def testConfigEditor(self):
     global test
     logging.debug(self.__class__.__name__ + ': testRun()')
     self.app = Application(sys.argv)
     self.app.mainWindow().setWindowTitle("test ConfigEditor")
     self.app.openFile(os.path.join(examplesDirectory,
                                    "copy_events_cfg.py"))
     for plugin in self.app.plugins():
         if plugin.__class__.__name__ == "ConfigEditorPlugin":
             tab = plugin.newFile(False)
     if not hasattr(unittest, "NO_GUI_TEST"):
         self.app.run()
Beispiel #3
0
 def testBrowser(self):
     logging.debug(self.__class__.__name__ +': testRun()')
     self.app=Application(sys.argv)
     self.app.mainWindow().setWindowTitle("test Browser")
     self.plugin=BrowserPlugin(self.app)
     self.plugin.startUp()
     self.tab = BrowserTab(self.app.mainWindow())
     self.controller = BrowserTabController(self.plugin)
     self.controller.setDataAccessor(TestDataAccessor())
     self.tab.setController(self.controller)
     self.app.mainWindow().addTab(self.tab)
     self.controller.updateContent()
     self.controller.updateViewMenu()
     if not hasattr(unittest,"NO_GUI_TEST"):
         self.app.run()
Beispiel #4
0
 def testConfigEditor(self):
     global test
     logging.debug(self.__class__.__name__ +': testRun()')
     self.app=Application(sys.argv)
     self.app.mainWindow().setWindowTitle("test ConfigEditor")
     self.app.openFile(os.path.join(examplesDirectory,"copy_events_cfg.py"))
     for plugin in self.app.plugins():
         if plugin.__class__.__name__=="ConfigEditorPlugin":
             tab=plugin.newFile(False)
     if not hasattr(unittest,"NO_GUI_TEST"):
         self.app.run()
Beispiel #5
0
 def testRun(self):
     logging.debug(self.__class__.__name__ + ': testRun()')
     self.app = Application(sys.argv)
     self.app.mainWindow().setWindowTitle("test no threads")
     self.app.run()
Beispiel #6
0
 def testRun(self):
     logging.debug(self.__class__.__name__ +': testRun()')
     self.app=Application(sys.argv)
     self.app.mainWindow().setWindowTitle("test no threads")
     self.app.run()