Skip to content

Commit

Permalink
And update mysql pass for latest unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Feb 12, 2024
1 parent 197331f commit 929856c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def database_init(dbname=DATABASE_NAME):
con.close()
return 'postgresql+psycopg://postgres:postgres@localhost:5432/' + dbname
elif os.getenv('UNITTEST_DATABASE') == 'mysql':
con = mysql.connector.connect(user='user', host='localhost', password='password')
con = mysql.connector.connect(user='root', host='localhost', password='root')
cur = con.cursor()
cur.execute("DROP DATABASE IF EXISTS {}".format(dbname))
cur.execute("CREATE DATABASE {}".format(dbname))
Expand Down

0 comments on commit 929856c

Please sign in to comment.