提交 5fe7882a 编写于 作者: C cpwu

fix case

上级 d3628815
......@@ -59,9 +59,11 @@ class TDTestCase:
tdSql.query(f"select {condition} from {tbname} {where_condition} {group_condition} ")
datas = [tdSql.getData(i,0) for i in range(tdSql.queryRows)]
sum_data = sum(datas)
tdSql.query(f"select sum( {condition} ) from {tbname} {where_condition} {group_condition}")
tdSql.query(f"select sum( {condition} ) from {tbname} {where_condition} ")
tdSql.checkData(0, 0, sum_data)
tdSql.query(f"select {condition} from {tbname} {where_condition} {group_condition} ")
def __sum_err_check(self,tbanme):
sqls = []
......@@ -199,7 +201,7 @@ class TDTestCase:
self.__create_tb()
tdLog.printNoPrefix("==========step2:insert data")
self.__insert_data(1000)
self.__insert_data(100)
tdLog.printNoPrefix("==========step3:all check")
self.all_test()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册