fix: last two case fixed passed

This commit is contained in:
Alex Duan 2025-02-04 18:23:06 +08:00
parent ae81a63962
commit 6d0eb86b1b
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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