Beispiel #1
0
 def setUpClass(cls):
     cls.WS = WebService()
     cls.con = DoMysql("dbName1")
     cls.cf = DoConf(constant.globe_conf_dir)
     cls.log = LogTools(__name__)
     cls.log.mylog.info("开始测试")
     setattr(context.Context, "user_id", context.create_name())
 def setUpClass(cls):
     cls.WS = WebService()
     cls.sql = DoMysql("dbName1")
     cls.cf = DoConf(constant.globe_conf_dir)
     cls.log = LogTools(__name__)
     cls.log.mylog.info("开始测试")
     setattr(context.Context, "cre_id",
             IdNumber.generate_id(random.randint(0, 1)))
Beispiel #3
0
 def setUpClass(cls):
     cls.resp = Request()
     cls.con = DoMysql()
     cls.conf = DoConf(constant.globe_conf_dir)
     cls.log = LogTools(__name__)
 def setUpClass(cls):
     cls.resp = Request()
     cls.conf = DoConf(constant.globe_conf_dir)
     cls.con = DoMysql()