comparison test/test_init.py @ 855:335b49965293

Forgot to add to init tests
author Richard Jones <richard@users.sourceforge.net>
date Thu, 11 Jul 2002 01:12:34 +0000
parents dc05d4531f81
children 826f6e689836
comparison
equal deleted inserted replaced
854:3cdfa5d86cec 855:335b49965293
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: test_init.py,v 1.10 2002-06-11 04:59:14 richard Exp $ 18 # $Id: test_init.py,v 1.11 2002-07-11 01:12:34 richard Exp $
19 19
20 import unittest, os, shutil, errno, imp, sys 20 import unittest, os, shutil, errno, imp, sys
21 21
22 from roundup import init 22 from roundup import init
23 23
117 class bsddb3ClassicTestCase(ClassicTestCase): 117 class bsddb3ClassicTestCase(ClassicTestCase):
118 backend = 'bsddb3' 118 backend = 'bsddb3'
119 class bsddb3ExtendedTestCase(ExtendedTestCase): 119 class bsddb3ExtendedTestCase(ExtendedTestCase):
120 backend = 'bsddb3' 120 backend = 'bsddb3'
121 121
122 class metakitClassicTestCase(ClassicTestCase):
123 backend = 'metakit'
124 class metakitExtendedTestCase(ExtendedTestCase):
125 backend = 'metakit'
126
122 def suite(): 127 def suite():
123 l = [unittest.makeSuite(ClassicTestCase, 'test'), 128 l = [unittest.makeSuite(ClassicTestCase, 'test'),
124 unittest.makeSuite(ExtendedTestCase, 'test')] 129 unittest.makeSuite(ExtendedTestCase, 'test')]
125 try: 130 try:
126 import bsddb 131 import bsddb
134 l.append(unittest.makeSuite(bsddb3ClassicTestCase, 'test')) 139 l.append(unittest.makeSuite(bsddb3ClassicTestCase, 'test'))
135 l.append(unittest.makeSuite(bsddb3ExtendedTestCase, 'test')) 140 l.append(unittest.makeSuite(bsddb3ExtendedTestCase, 'test'))
136 except: 141 except:
137 print 'bsddb3 module not found, skipping bsddb3 DBTestCase' 142 print 'bsddb3 module not found, skipping bsddb3 DBTestCase'
138 143
144 try:
145 import metakit
146 l.append(unittest.makeSuite(metakitClassicTestCase, 'test'))
147 l.append(unittest.makeSuite(metakitExtendedTestCase, 'test'))
148 except:
149 print 'metakit module not found, skipping bsddb3 DBTestCase'
150
139 return unittest.TestSuite(l) 151 return unittest.TestSuite(l)
140 152
141 # 153 #
142 # $Log: not supported by cvs2svn $ 154 # $Log: not supported by cvs2svn $
155 # Revision 1.10 2002/06/11 04:59:14 richard
156 # enabled testing of bsddb in test_init
157 #
143 # Revision 1.9 2002/05/23 04:26:05 richard 158 # Revision 1.9 2002/05/23 04:26:05 richard
144 # 'I must run unit tests before committing\n' * 100 159 # 'I must run unit tests before committing\n' * 100
145 # 160 #
146 # Revision 1.8 2002/05/15 03:27:16 richard 161 # Revision 1.8 2002/05/15 03:27:16 richard
147 # . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope 162 # . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope

Roundup Issue Tracker: http://roundup-tracker.org/