Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
KASAKI11
TDengine
提交
fcaf198c
T
TDengine
项目概览
KASAKI11
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fcaf198c
编写于
6月 15, 2020
作者:
L
liu0x54
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-401] fix the test case script due to the query interface change and fixed some script bugs
上级
e98061b4
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
38 addition
and
38 deletion
+38
-38
tests/pytest/tag_lite/add.py
tests/pytest/tag_lite/add.py
+38
-38
未找到文件。
tests/pytest/tag_lite/add.py
浏览文件 @
fcaf198c
...
...
@@ -296,13 +296,13 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data23 != 1 then
tdLog
.
info
(
'tdSql.checkData(2, 3,
1
)'
)
tdSql
.
checkData
(
2
,
3
,
1
)
tdLog
.
info
(
'tdSql.checkData(2, 3,
TAG
)'
)
tdSql
.
checkData
(
2
,
3
,
"TAG"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data33 != 2.000000 then
tdLog
.
info
(
'tdSql.checkData(3, 3, 2.000000)'
)
tdSql
.
checkData
(
3
,
3
,
2.000000
)
tdSql
.
checkData
(
3
,
3
,
"TAG"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -396,7 +396,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data03 != 2 then
tdLog
.
info
(
'tdSql.checkData(0, 3, 2)'
)
tdSql
.
checkData
(
0
,
3
,
2
)
tdSql
.
checkData
(
0
,
3
,
"2"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -553,12 +553,12 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data03 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 3, 5)'
)
tdSql
.
checkData
(
0
,
3
,
5
)
tdSql
.
checkData
(
0
,
3
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 4, 6)'
)
tdSql
.
checkData
(
0
,
4
,
6
)
tdSql
.
checkData
(
0
,
4
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -584,12 +584,12 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data03 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 3, 5)'
)
tdSql
.
checkData
(
0
,
3
,
5
)
tdSql
.
checkData
(
0
,
3
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 4, 6)'
)
tdSql
.
checkData
(
0
,
4
,
6
)
tdSql
.
checkData
(
0
,
4
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -654,7 +654,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data04 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 4, 3)'
)
tdSql
.
checkData
(
0
,
4
,
3
)
tdSql
.
checkData
(
0
,
4
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -779,7 +779,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data04 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 4, 3)'
)
tdSql
.
checkData
(
0
,
4
,
3
)
tdSql
.
checkData
(
0
,
4
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -838,7 +838,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data03 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 3, 5)'
)
tdSql
.
checkData
(
0
,
3
,
5
)
tdSql
.
checkData
(
0
,
3
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 1 then
...
...
@@ -900,12 +900,12 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data03 != 2 then
tdLog
.
info
(
'tdSql.checkData(0, 3, 2)'
)
tdSql
.
checkData
(
0
,
3
,
2
)
tdSql
.
checkData
(
0
,
3
,
"2"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 4, 3)'
)
tdSql
.
checkData
(
0
,
4
,
3
)
tdSql
.
checkData
(
0
,
4
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -1024,28 +1024,28 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data02 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 2, 1)'
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
0
,
2
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 2 then
tdLog
.
info
(
'tdSql.checkData(0, 3, 2)'
)
tdSql
.
checkData
(
0
,
3
,
2
)
tdSql
.
checkData
(
0
,
3
,
"2"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 4, 3)'
)
tdSql
.
checkData
(
0
,
4
,
3
)
tdSql
.
checkData
(
0
,
4
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 5, 4)'
)
tdSql
.
checkData
(
0
,
5
,
4
)
tdSql
.
checkData
(
0
,
5
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
# TSIM: sql alter table $mt change tag tgcol1 tgcol4 -x step103
tdLog
.
info
(
'alter table %s change tag tgcol1 tgcol4 -x step103'
%
(
mt
))
tdSql
.
error
(
'alter table %s change tag tgcol1 tgcol4
03
'
%
(
mt
))
tdSql
.
error
(
'alter table %s change tag tgcol1 tgcol4'
%
(
mt
))
# TSIM: return -1
# TSIM: step103:
# TSIM:
...
...
@@ -1098,12 +1098,12 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data02 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 2, 1)'
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
0
,
2
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 3, 4)'
)
tdSql
.
checkData
(
0
,
3
,
4
)
tdSql
.
checkData
(
0
,
3
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 0 then
...
...
@@ -1112,8 +1112,8 @@ class TDTestCase:
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != NULL then
tdLog
.
info
(
'tdSql.checkData(0, 5, NULL)'
)
tdSql
.
checkData
(
0
,
5
,
None
)
#
tdLog.info('tdSql.checkData(0, 5, NULL)')
#
tdSql.checkData(0, 5, None)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -1189,13 +1189,13 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data06 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 6, 5)'
)
tdSql
.
checkData
(
0
,
6
,
5
)
tdSql
.
checkData
(
0
,
6
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
# TSIM: sql alter table $mt change tag tgcol1 tgcol4 -x step114
tdLog
.
info
(
'alter table %s change tag tgcol1 tgcol4 -x step114'
%
(
mt
))
tdSql
.
error
(
'alter table %s change tag tgcol1 tgcol4
14
'
%
(
mt
))
tdSql
.
error
(
'alter table %s change tag tgcol1 tgcol4'
%
(
mt
))
# TSIM: return -1
# TSIM: step114:
# TSIM:
...
...
@@ -1274,7 +1274,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data03 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 3, 4)'
)
tdSql
.
checkData
(
0
,
3
,
4
)
tdSql
.
checkData
(
0
,
3
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 5 then
...
...
@@ -1284,7 +1284,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data05 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 5, 6)'
)
tdSql
.
checkData
(
0
,
5
,
6
)
tdSql
.
checkData
(
0
,
5
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 7 then
...
...
@@ -1376,12 +1376,12 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data06 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 6, 5)'
)
tdSql
.
checkData
(
0
,
6
,
5
)
tdSql
.
checkData
(
0
,
6
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data07 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 7, 6)'
)
tdSql
.
checkData
(
0
,
7
,
6
)
tdSql
.
checkData
(
0
,
7
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -1460,12 +1460,12 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data03 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 3, 1)'
)
tdSql
.
checkData
(
0
,
3
,
1
)
tdSql
.
checkData
(
0
,
3
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data04 != 5 then
tdLog
.
info
(
'tdSql.checkData(0, 4, 5)'
)
tdSql
.
checkData
(
0
,
4
,
5
)
tdSql
.
checkData
(
0
,
4
,
"5"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data05 != 4 then
...
...
@@ -1475,7 +1475,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data06 != 3 then
tdLog
.
info
(
'tdSql.checkData(0, 6, 3)'
)
tdSql
.
checkData
(
0
,
6
,
3
)
tdSql
.
checkData
(
0
,
6
,
"3"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data07 != 2 then
...
...
@@ -1562,7 +1562,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data02 != 1 then
tdLog
.
info
(
'tdSql.checkData(0, 2, 1)'
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
0
,
2
,
"1"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 2 then
...
...
@@ -1577,7 +1577,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data05 != 4 then
tdLog
.
info
(
'tdSql.checkData(0, 5, 4)'
)
tdSql
.
checkData
(
0
,
5
,
4
)
tdSql
.
checkData
(
0
,
5
,
"4"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 5.000000000 then
...
...
@@ -1587,7 +1587,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data07 != 6 then
tdLog
.
info
(
'tdSql.checkData(0, 7, 6)'
)
tdSql
.
checkData
(
0
,
7
,
6
)
tdSql
.
checkData
(
0
,
7
,
"6"
)
# TSIM: return -1
# TSIM: endi
# TSIM:
...
...
@@ -1655,7 +1655,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data02 != 7 then
tdLog
.
info
(
'tdSql.checkData(0, 2, 7)'
)
tdSql
.
checkData
(
0
,
2
,
7
)
tdSql
.
checkData
(
0
,
2
,
"7"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data03 != 9 then
...
...
@@ -1670,7 +1670,7 @@ class TDTestCase:
# TSIM: endi
# TSIM: if $data05 != 8 then
tdLog
.
info
(
'tdSql.checkData(0, 5, 8)'
)
tdSql
.
checkData
(
0
,
5
,
8
)
tdSql
.
checkData
(
0
,
5
,
"8"
)
# TSIM: return -1
# TSIM: endi
# TSIM: if $data06 != 10 then
...
...
@@ -1744,8 +1744,8 @@ class TDTestCase:
# TSIM: print =============== clear
tdLog
.
info
(
'=============== clear'
)
# TSIM: sql drop database $db
tdLog
.
info
(
'sql drop database
$
db'
)
tdSql
.
execute
(
'
sql drop database $
db'
)
tdLog
.
info
(
'sql drop database db'
)
tdSql
.
execute
(
'
drop database
db'
)
# TSIM: sql show databases
tdLog
.
info
(
'show databases'
)
tdSql
.
query
(
'show databases'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录