1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: test_postgresql.py,v 1.6 2004-03-18 01:58:46 richard Exp $
18+ # $Id: test_postgresql.py,v 1.7 2004-03-24 06:18:59 richard Exp $
1919
2020import unittest
2121
2828config .POSTGRESQL_DATABASE = {'database' : 'rounduptest' }
2929
3030from roundup import backends
31- from roundup .backends .back_postgresql import db_nuke , db_create , db_exists
3231
3332class postgresqlOpener :
3433 if hasattr (backends , 'postgresql' ):
3534 from roundup .backends import postgresql as module
3635
3736 def setUp (self ):
37+ #from roundup.backends.back_postgresql import db_nuke
3838 #db_nuke(config, 1)
3939 pass
4040
@@ -43,6 +43,7 @@ def tearDown(self):
4343
4444 def nuke_database (self ):
4545 # clear out the database - easiest way is to nuke and re-create it
46+ from roundup .backends .back_postgresql import db_nuke
4647 db_nuke (config )
4748
4849class postgresqlDBTest (postgresqlOpener , DBTest ):
@@ -104,9 +105,11 @@ def tearDown(self):
104105def test_suite ():
105106 suite = unittest .TestSuite ()
106107 if not hasattr (backends , 'postgresql' ):
108+ print "Skipping mysql tests"
107109 return suite
108110
109111 # make sure we start with a clean slate
112+ from roundup .backends .back_postgresql import db_nuke
110113 db_nuke (config , 1 )
111114
112115 # TODO: Check if we can run postgresql tests
0 commit comments