Mercurial > p > roundup > code
diff test/test_db.py @ 1375:faf93d3fbf2f
added mysql backend
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 13 Jan 2003 23:32:12 +0000 |
| parents | 4884fb0860f9 |
| children | 5d1fe5d51c12 |
line wrap: on
line diff
--- a/test/test_db.py Mon Jan 13 23:30:44 2003 +0000 +++ b/test/test_db.py Mon Jan 13 23:32:12 2003 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_db.py,v 1.65 2003-01-12 23:53:20 richard Exp $ +# $Id: test_db.py,v 1.66 2003-01-13 23:32:12 richard Exp $ import unittest, os, shutil, time @@ -708,7 +708,8 @@ # remove previous test, ignore errors if os.path.exists(config.DATABASE): shutil.rmtree(config.DATABASE) - config.MYSQL_DATABASE='mysql@localhost root rootpasswd'.split() + config.MYSQL_DATABASE = ('localhost', 'rounduptest', 'rounduptest', + 'rounduptest') os.makedirs(config.DATABASE + '/files') self.db = mysql.Database(config, 'admin') setupSchema(self.db, 1, mysql) @@ -719,7 +720,8 @@ # remove previous test, ignore errors if os.path.exists(config.DATABASE): shutil.rmtree(config.DATABASE) - config.MYSQL_DATABASE='mysql@localhost root rootpasswd'.split() + config.MYSQL_DATABASE = ('localhost', 'rounduptest', 'rounduptest', + 'rounduptest') os.makedirs(config.DATABASE + '/files') db = mysql.Database(config, 'admin') setupSchema(db, 1, mysql) @@ -818,9 +820,9 @@ # return unittest.TestSuite(l) from roundup import backends -# if hasattr(backends, 'mysql'): -# l.append(unittest.makeSuite(mysqlDBTestCase, 'test')) -# l.append(unittest.makeSuite(mysqlReadOnlyDBTestCase, 'test')) + if hasattr(backends, 'mysql'): + l.append(unittest.makeSuite(mysqlDBTestCase, 'test')) + l.append(unittest.makeSuite(mysqlReadOnlyDBTestCase, 'test')) # return unittest.TestSuite(l) if hasattr(backends, 'gadfly'):
