fix: last two case fixed passed
This commit is contained in:
parent
ae81a63962
commit
6d0eb86b1b
|
@ -110,7 +110,8 @@ class TDTestCase(TBase):
|
||||||
tdSql.query("select * from db.st where jtag contains 'location'")
|
tdSql.query("select * from db.st where jtag contains 'location'")
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
tdSql.checkData(0, 1, 1)
|
tdSql.checkData(0, 1, 1)
|
||||||
tdSql.checkData(0, 2, "{'location': 'beijing'}")
|
val = '{"location":"beijing"}'
|
||||||
|
tdSql.checkData(0, 2, val)
|
||||||
|
|
||||||
tdSql.query("select jtag from db.st")
|
tdSql.query("select jtag from db.st")
|
||||||
tdSql.checkRows(3)
|
tdSql.checkRows(3)
|
||||||
|
@ -118,9 +119,8 @@ class TDTestCase(TBase):
|
||||||
dbresult = tdSql.res
|
dbresult = tdSql.res
|
||||||
print(dbresult)
|
print(dbresult)
|
||||||
found = False
|
found = False
|
||||||
value = {'location': 'beijing'}
|
|
||||||
for i in range(len(dbresult)):
|
for i in range(len(dbresult)):
|
||||||
if dbresult[i][0] == value:
|
if dbresult[i][0] == val:
|
||||||
found = True
|
found = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@
|
||||||
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/taosdemoTestQueryWithJson.py -R
|
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/taosdemoTestQueryWithJson.py -R
|
||||||
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/commandline-partial-col-numpy.py
|
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/commandline-partial-col-numpy.py
|
||||||
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/query_json-with-sqlfile.py
|
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/query_json-with-sqlfile.py
|
||||||
,,n,army,python3 ./test.py -f tools/benchmark/basic/query_json.py
|
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/query_json.py -B
|
||||||
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/sml_json_alltypes.py
|
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/sml_json_alltypes.py
|
||||||
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/invalid_commandline.py
|
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/invalid_commandline.py
|
||||||
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/sml_json_insert_alltypes-same-min-max.py
|
,,y,army,./pytest.sh python3 ./test.py -f tools/benchmark/basic/sml_json_insert_alltypes-same-min-max.py
|
||||||
|
|
Loading…
Reference in New Issue