mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 12:27:03 +08:00
Test connection tweaks for Travis
This commit is contained in:
@ -5,5 +5,3 @@ Python:
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
script: nosetests
|
||||
before_script:
|
||||
- mysql -e 'CREATE DATABASE test;'
|
||||
|
@ -10,7 +10,7 @@ class test_MySQLdb(capabilities.DatabaseTest):
|
||||
|
||||
db_module = MySQLdb
|
||||
connect_args = ()
|
||||
connect_kwargs = dict(db='test', host="127.0.0.1", user="test", #read_default_file='~/.my.cnf',
|
||||
connect_kwargs = dict(db='test', host="127.0.0.1", user="root",
|
||||
charset='utf8', sql_mode="ANSI,STRICT_TRANS_TABLES,TRADITIONAL")
|
||||
create_table_extra = "ENGINE=INNODB CHARACTER SET UTF8"
|
||||
leak_test = False
|
||||
|
@ -8,7 +8,7 @@ class test_MySQLdb(dbapi20.DatabaseAPI20Test):
|
||||
connect_args = ()
|
||||
connect_kw_args = dict(db='test',
|
||||
host="127.0.0.1",
|
||||
user="test", #read_default_file='~/.my.cnf',
|
||||
user="root",
|
||||
charset='utf8',
|
||||
sql_mode="ANSI,STRICT_TRANS_TABLES,TRADITIONAL")
|
||||
|
||||
|
@ -44,7 +44,7 @@ class CoreAPI(unittest.TestCase):
|
||||
"""Test _mysql interaction internals."""
|
||||
|
||||
def setUp(self):
|
||||
self.conn = _mysql.connect(db='test', host='127.0.0.1', user='test') #read_default_file="~/.my.cnf")
|
||||
self.conn = _mysql.connect(db='test', host='127.0.0.1', user='root')
|
||||
|
||||
def tearDown(self):
|
||||
self.conn.close()
|
||||
|
Reference in New Issue
Block a user