fix: case issue
This commit is contained in:
parent
f43a3aa581
commit
59ec70a001
|
@ -25,6 +25,8 @@ class TDTestCase:
|
||||||
tdSql.init(conn.cursor())
|
tdSql.init(conn.cursor())
|
||||||
|
|
||||||
def inTest(self, dbname="db"):
|
def inTest(self, dbname="db"):
|
||||||
|
tdSql.execute(f'drop database if exists {dbname}')
|
||||||
|
tdSql.execute(f'create database {dbname}')
|
||||||
tdSql.execute(f'use {dbname}')
|
tdSql.execute(f'use {dbname}')
|
||||||
tdSql.execute('CREATE STABLE `st1` (`ts` TIMESTAMP, `v1` INT) TAGS (`t1` INT);')
|
tdSql.execute('CREATE STABLE `st1` (`ts` TIMESTAMP, `v1` INT) TAGS (`t1` INT);')
|
||||||
tdSql.execute('CREATE STABLE `st2` (`ts` TIMESTAMP, `v1` INT) TAGS (`t1` INT);')
|
tdSql.execute('CREATE STABLE `st2` (`ts` TIMESTAMP, `v1` INT) TAGS (`t1` INT);')
|
||||||
|
@ -132,8 +134,6 @@ class TDTestCase:
|
||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
tdSql.prepare()
|
|
||||||
|
|
||||||
self.inTest()
|
self.inTest()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
|
|
Loading…
Reference in New Issue