make integration tests work

This commit is contained in:
Tomas 2023-11-29 14:23:21 +02:00
parent 778fbd497c
commit 23db3f42b1
4 changed files with 120 additions and 25 deletions

View file

@ -974,12 +974,9 @@ def set_password_expire(cursor, user, host, password_expire, password_expire_int
statment = "PASSWORD EXPIRE INTERVAL %d DAY" % (password_expire_interval)
elif password_expire.lower() == "now":
statment = "PASSWORD EXPIRE"
if host:
params = (user, host)
query = ["ALTER USER %s@%s"]
else:
params = (user,)
query = ["ALTER USER %s"]
params = (user, host)
query = ["ALTER USER %s@%s"]
query.append(statment)
query = ' '.join(query)