summaryrefslogtreecommitdiff
path: root/test/unittest_db.py
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-08-11 15:49:45 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-08-11 15:49:45 +0200
commitdd75213160031c43c2ff68f9b6e08a5ec3c7aea2 (patch)
tree5abb0e52ceafec3d32c4bf7050caf66f9067daa7 /test/unittest_db.py
parenta67628ec1a006385bbbccaf4873d03ae5ee005d3 (diff)
downloadlogilab-common-dd75213160031c43c2ff68f9b6e08a5ec3c7aea2.tar.gz
fixed port handling and tests
Diffstat (limited to 'test/unittest_db.py')
-rw-r--r--test/unittest_db.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/unittest_db.py b/test/unittest_db.py
index 8049220..c361e43 100644
--- a/test/unittest_db.py
+++ b/test/unittest_db.py
@@ -49,7 +49,7 @@ class PreferedDriverTC(TestCase):
class getCnxTC(TestCase):
def setUp(self):
self.host = 'crater.logilab.fr'
- self.db = 'gincotest2'
+ self.db = 'template1'
self.user = 'adim'
self.passwd = 'adim'
@@ -83,8 +83,7 @@ class getCnxTC(TestCase):
def testMysql(self):
set_prefered_driver('mysql', 'MySQLdb')
try:
- cnx = get_connection('mysql',
- self.host, self.db, self.user, self.passwd,
+ cnx = get_connection('mysql', self.host, database='', user='root',
quiet=1)
except ImportError:
self.skip('python-mysqldb is not installed')