Somehow I missed this connection setup

This commit is contained in:
farcepest
2012-10-02 13:50:00 -04:00
parent 413c3b6623
commit 72848c84bc

View File

@ -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()