Fixes in tests
This commit is contained in:
parent
d04a7121df
commit
764a4863a2
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ def webmodel_conn(request):
|
|||
import pymysql.cursors
|
||||
pymysql.install_as_MySQLdb
|
||||
|
||||
conn=pymysql.connect(options['mysql_host'],
|
||||
conn=pymysql.connect(host=options['mysql_host'],
|
||||
user=options['mysql_user'],
|
||||
passwd=options['mysql_password'],
|
||||
charset='utf8mb4',
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class ExampleModel2(WebModel):
|
|||
|
||||
# Define fixture for get data for mysql connection via command line
|
||||
|
||||
# WebModel.connections={'default': {'name': 'default', 'host': 'localhost', 'user': 'root', 'password': 'sirena', 'db': 'cuchuludev_db', 'charset': 'utf8mb4', 'set_connection': False, 'db_type': 'pymysql'} }
|
||||
# WebModel.connections={'default': {'name': 'default', 'host': 'localhost', 'user': 'root', 'password': '', 'db': 'cuchuludev_db', 'charset': 'utf8mb4', 'set_connection': False, 'db_type': 'pymysql'} }
|
||||
|
||||
def test_test_table(webmodel_conn):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue