case: add use db

This commit is contained in:
Alex Duan 2023-09-15 15:49:35 +08:00
parent 0e6486e3ec
commit bc1371a4b7
1 changed files with 4 additions and 3 deletions

View File

@ -47,6 +47,10 @@ class TDTestCase:
def run(self): def run(self):
tdSql.prepare() tdSql.prepare()
dbname = "db" dbname = "db"
# full type test
self.full_datatype_test()
tdSql.execute( tdSql.execute(
f"create table {dbname}.ntb(ts timestamp,c1 int,c2 double,c3 float)") f"create table {dbname}.ntb(ts timestamp,c1 int,c2 double,c3 float)")
tdSql.execute( tdSql.execute(
@ -305,9 +309,6 @@ class TDTestCase:
tdSql.checkData(0, 1, 11) tdSql.checkData(0, 1, 11)
tdSql.checkData(1, 1, -9) tdSql.checkData(1, 1, -9)
# full type test
self.full_datatype_test()
def stop(self): def stop(self):
tdSql.close() tdSql.close()
tdLog.success("%s successfully executed" % __file__) tdLog.success("%s successfully executed" % __file__)