def main(): FLExInit.Initialize() form = FTMainForm() Application.Run(form) FLExInit.Cleanup()
def test_InitializeCleanup(self): try: FLExInit.Initialize() except: self.fail("Failed to initialize") try: FLExInit.Cleanup() except: self.fail("Failed to Cleanup")
reporter = FTReport.FTReporter() try: ftm.Run(FlexDB, reporter) except: logger.exception("Runtime error:") return rLOOKUP = ["INFO", "WARN", "ERR ", " "] for m in reporter.messages: t, msg, extra = m logger.info ("%s: %s" % (rLOOKUP[t], msg)) if extra: logger.info (">>>> %s" % extra) if __name__ == "__main__": if len(sys.argv) != 3: usage() sys.exit(1) ProjectName = sys.argv[1] ModuleToTest = sys.argv[2] FLExInit.Initialize() main(ProjectName, ModuleToTest) FLExInit.Cleanup()
def tearDownClass(cls): FLExInit.Cleanup()
def setUpClass(cls): FLExInit.Initialize() cls.project = FLExProject()