class ConfigBrowserTestCase(unittest.TestCase):
    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
class PatEditorTestCase(unittest.TestCase):
    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
class PatEditorTestCase(unittest.TestCase):
    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()