mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-17 04:50:55 +08:00
Somehow I missed this connection setup
This commit is contained in:
@ -3,6 +3,7 @@ import unittest
|
|||||||
import _mysql
|
import _mysql
|
||||||
import MySQLdb
|
import MySQLdb
|
||||||
from MySQLdb.constants import FIELD_TYPE
|
from MySQLdb.constants import FIELD_TYPE
|
||||||
|
from configdb import connection_factory
|
||||||
|
|
||||||
|
|
||||||
class TestDBAPISet(unittest.TestCase):
|
class TestDBAPISet(unittest.TestCase):
|
||||||
@ -44,7 +45,7 @@ class CoreAPI(unittest.TestCase):
|
|||||||
"""Test _mysql interaction internals."""
|
"""Test _mysql interaction internals."""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.conn = _mysql.connect(db='test', host='127.0.0.1', user='root')
|
self.conn = connection_factory(use_unicode=True)
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self.conn.close()
|
self.conn.close()
|
||||||
|
Reference in New Issue
Block a user