Ejemplo n.º 1
0
def main():
    FLExInit.Initialize()

    form = FTMainForm()
    Application.Run(form)

    FLExInit.Cleanup()
Ejemplo n.º 2
0
 def test_InitializeCleanup(self):
     try:
         FLExInit.Initialize()
     except:
         self.fail("Failed to initialize")
     try:
         FLExInit.Cleanup()
     except:
         self.fail("Failed to Cleanup")
Ejemplo n.º 3
0
    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()
Ejemplo n.º 4
0
 def tearDownClass(cls):
     FLExInit.Cleanup()
Ejemplo n.º 5
0
 def setUpClass(cls):
     FLExInit.Initialize()
     cls.project = FLExProject()