diff --git a/paramecio2/tests/conftest.py b/paramecio2/tests/conftest.py index db324b6..e464f79 100644 --- a/paramecio2/tests/conftest.py +++ b/paramecio2/tests/conftest.py @@ -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', diff --git a/paramecio2/tests/webmodel_test.py b/paramecio2/tests/webmodel_test.py index 1c7c363..566ba79 100644 --- a/paramecio2/tests/webmodel_test.py +++ b/paramecio2/tests/webmodel_test.py @@ -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):