Mercurial > p > roundup > code
diff test/test_postgresql.py @ 2107:b7404a96b58a 0.7.0b1
minor pre-release / test fixes
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 24 Mar 2004 06:18:59 +0000 |
| parents | c091cacdc505 |
| children | f5755353e972 |
line wrap: on
line diff
--- a/test/test_postgresql.py Wed Mar 24 05:56:49 2004 +0000 +++ b/test/test_postgresql.py Wed Mar 24 06:18:59 2004 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_postgresql.py,v 1.6 2004-03-18 01:58:46 richard Exp $ +# $Id: test_postgresql.py,v 1.7 2004-03-24 06:18:59 richard Exp $ import unittest @@ -28,13 +28,13 @@ config.POSTGRESQL_DATABASE = {'database': 'rounduptest'} from roundup import backends -from roundup.backends.back_postgresql import db_nuke, db_create, db_exists class postgresqlOpener: if hasattr(backends, 'postgresql'): from roundup.backends import postgresql as module def setUp(self): + #from roundup.backends.back_postgresql import db_nuke #db_nuke(config, 1) pass @@ -43,6 +43,7 @@ def nuke_database(self): # clear out the database - easiest way is to nuke and re-create it + from roundup.backends.back_postgresql import db_nuke db_nuke(config) class postgresqlDBTest(postgresqlOpener, DBTest): @@ -104,9 +105,11 @@ def test_suite(): suite = unittest.TestSuite() if not hasattr(backends, 'postgresql'): + print "Skipping mysql tests" return suite # make sure we start with a clean slate + from roundup.backends.back_postgresql import db_nuke db_nuke(config, 1) # TODO: Check if we can run postgresql tests
