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