From 6dde3edc8d58032192f1256cc5bedff07516d670 Mon Sep 17 00:00:00 2001 From: "wenzhouwww@live.cn" Date: Fri, 27 May 2022 15:09:31 +0800 Subject: [PATCH] test : update case --- tests/system-test/2-query/csum.py | 4 ++-- tests/system-test/2-query/elapsed.py | 6 +++--- tests/system-test/fulltest.sh | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/system-test/2-query/csum.py b/tests/system-test/2-query/csum.py index 9e07f6d478..fd3441c7c4 100644 --- a/tests/system-test/2-query/csum.py +++ b/tests/system-test/2-query/csum.py @@ -153,7 +153,7 @@ class TDTestCase: case6 = {"col": "c9"} self.checkcsum(**case6) - # # case7~8: nested query + # case7~8: nested query # case7 = {"table_expr": "(select c1 from stb1)"} # self.checkcsum(**case7) # case8 = {"table_expr": "(select csum(c1) c1 from stb1 group by tbname)"} @@ -188,7 +188,7 @@ class TDTestCase: "condition": "where t1.ts=t2.ts" } self.checkcsum(**case17) - # # case18~19: with group by + # case18~19: with group by # case18 = { # "table_expr": "t1", # "condition": "group by c6" diff --git a/tests/system-test/2-query/elapsed.py b/tests/system-test/2-query/elapsed.py index 899b2d3b4e..017090128d 100644 --- a/tests/system-test/2-query/elapsed.py +++ b/tests/system-test/2-query/elapsed.py @@ -1560,13 +1560,13 @@ class TDTestCase: if pres == "ms": if unit in ["10u","10b"]: - # tdSql.error("select elapsed(ts,%s) from db_%s.st group by tbname "%(unit,pres)) + tdSql.error("select elapsed(ts,%s) from db_%s.st group by tbname "%(unit,pres)) pass else: tdSql.query("select elapsed(ts,%s) from db_%s.st group by tbname "%(unit,pres)) elif pres == "us" and unit in ["10b"]: if unit in ["10b"]: - # tdSql.error("select elapsed(ts,%s) from db_%s.st group by tbname "%(unit,pres)) + tdSql.error("select elapsed(ts,%s) from db_%s.st group by tbname "%(unit,pres)) pass else: tdSql.query("select elapsed(ts,%s) from db_%s.st group by tbname "%(unit,pres)) @@ -1575,7 +1575,7 @@ class TDTestCase: tdSql.query("select elapsed(ts,%s) from db_%s.st group by tbname "%(unit,pres)) basic_result = 9 tdSql.checkData(0,0,basic_result*pow(1000,index)) - + def run(self): tdSql.prepare() self.prepare_data() diff --git a/tests/system-test/fulltest.sh b/tests/system-test/fulltest.sh index faf976012e..c43e608d03 100755 --- a/tests/system-test/fulltest.sh +++ b/tests/system-test/fulltest.sh @@ -65,6 +65,7 @@ python3 ./test.py -f 2-query/avg.py python3 ./test.py -f 2-query/elapsed.py python3 ./test.py -f 2-query/csum.py + python3 ./test.py -f 7-tmq/basic5.py python3 ./test.py -f 7-tmq/subscribeDb.py python3 ./test.py -f 7-tmq/subscribeDb1.py -- GitLab