From: Kevin C. <ke...@us...> - 2006-02-28 11:06:12
|
Update of /cvsroot/mailmanager/MailManager/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13625/tests Modified Files: Tag: RELENG_2_1 testZSQL.py Log Message: Standardised on the new test format Index: testZSQL.py =================================================================== RCS file: /cvsroot/mailmanager/MailManager/tests/testZSQL.py,v retrieving revision 1.3.2.1 retrieving revision 1.3.2.2 diff -u -d -r1.3.2.1 -r1.3.2.2 --- testZSQL.py 24 Feb 2006 16:40:37 -0000 1.3.2.1 +++ testZSQL.py 28 Feb 2006 11:06:08 -0000 1.3.2.2 @@ -84,26 +84,11 @@ class TestZSQL(zsqlTest): - # def testMySQL(self): - # self.dbplatform = 'mysql' - # self.runZSQLTests(self.dbplatform) - - def testPostgres(self): - self.dbplatform = 'postgres' - self.runZSQLTests(self.dbplatform) - - def runZSQLTests(self, dbplatform): - if dbplatform in self.config['databases']['supported_databases']: - self.sqlmethods = {} - for sqlmethod in testDatabase.sqlmethods: - self.sqlmethods[sqlmethod] = testDatabase.ZSQLFileMethod('%s.zsql' % sqlmethod, dbplatform='dbplatform') - self.sqlmethods[sqlmethod].schema = self.config['database_%s' % dbplatform]['schema'] - self.setupMailManager(dbplatform = dbplatform) - #self.populateDataset() - #self.populateTickets() - #self.workflowTests() - self.zsqlTests() - self.removeMailManager() + def testZSQL(self): + self.dbplatform = self.config['databases']['primary_database'] + self.setupMailManager(dbplatform = self.dbplatform) + self.zsqlTests() + self.removeMailManager() ########################################################################### |