提交 821e5f50 编写于 作者: J jiacy-jcy

modify test case

上级 84e82ef2
......@@ -13,6 +13,7 @@
import random
import string
from datetime import datetime
from util import constant
from util.log import *
from util.cases import *
......@@ -55,7 +56,7 @@ class TDTestCase:
else:
tdLog.exit(f'{col_name} data check failure')
elif col_type.lower() == 'timestamp':
tdSql.checkEqual(str(tdSql.queryResult[0][0]),str(datetime.datetime.fromtimestamp(value/1000).strftime("%Y-%m-%d %H:%M:%S.%f")))
tdSql.checkEqual(str(tdSql.queryResult[0][0]),str(datetime.fromtimestamp(value/1000).strftime("%Y-%m-%d %H:%M:%S.%f")))
else:
tdSql.checkEqual(tdSql.queryResult[0][0],value)
def update_and_check_data(self,tbname,col_name,col_type,value,dbname):
......@@ -242,8 +243,10 @@ class TDTestCase:
self.error_check(self.ctbname,self.column_dict,'ctb',self.stbname)
def run(self):
for i in range(10):
self.update_check()
self.update_check_error()
i+=1
def stop(self):
tdSql.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册