提交 d3128784 编写于 作者: C cpwu

fix case

上级 d20bd3e4
......@@ -123,7 +123,7 @@ def taos_connect(
class User:
name : str = None
passwd : str = None
db_set : list = []
db_set : set = {}
priv : str = None
priv_weight : int = 0
......@@ -142,7 +142,7 @@ class TDTestCase:
self.root_user = User()
self.root_user.name = "root"
self.root_user.passwd = "passwd"
self.root_user.db_set = ["*"]
self.root_user.db_set = set("*")
self.root_user.priv = PRIVILEGES_ALL
self.root_user.priv_weight = WEIGHT_ALL
for i in range(self.users_count):
......@@ -297,7 +297,7 @@ class TDTestCase:
tdSql.error(sql)
tdSql.query(sql)
self.__change_user_priv(user=user, pre_priv=priv)
user.db_set = list(set(user.db_set.append(dbname)))
user.db_set.add(dbname)
time.sleep(2)
def revoke_user(self, user: User = None, priv=PRIVILEGES_ALL, dbname=None):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册