Mercurial > p > roundup > code
comparison test/test_init.py @ 1111:a7a1f6098263
test gadfly init
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 11 Sep 2002 01:21:01 +0000 |
| parents | 854d45f8b745 |
| children | 14467c765167 |
comparison
equal
deleted
inserted
replaced
| 1110:6038b4231a08 | 1111:a7a1f6098263 |
|---|---|
| 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.17 2002-09-10 01:27:13 richard Exp $ | 18 # $Id: test_init.py,v 1.18 2002-09-11 01:21:01 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 |
| 75 backend = 'bsddb3' | 75 backend = 'bsddb3' |
| 76 | 76 |
| 77 class metakitClassicTestCase(ClassicTestCase): | 77 class metakitClassicTestCase(ClassicTestCase): |
| 78 backend = 'metakit' | 78 backend = 'metakit' |
| 79 | 79 |
| 80 class gadflyClassicTestCase(ClassicTestCase): | |
| 81 backend = 'gadfly' | |
| 82 | |
| 80 def suite(): | 83 def suite(): |
| 81 l = [ | 84 l = [ |
| 82 unittest.makeSuite(ClassicTestCase, 'test'), | 85 unittest.makeSuite(ClassicTestCase, 'test'), |
| 83 ] | 86 ] |
| 84 | 87 |
| 98 import metakit | 101 import metakit |
| 99 l.append(unittest.makeSuite(metakitClassicTestCase, 'test')) | 102 l.append(unittest.makeSuite(metakitClassicTestCase, 'test')) |
| 100 except: | 103 except: |
| 101 print 'metakit module not found, skipping metakit DBTestCase' | 104 print 'metakit module not found, skipping metakit DBTestCase' |
| 102 | 105 |
| 106 try: | |
| 107 import gadfly | |
| 108 l.append(unittest.makeSuite(gadflyClassicTestCase, 'test')) | |
| 109 except: | |
| 110 print 'gadfly module not found, skipping gadfly DBTestCase' | |
| 111 | |
| 103 return unittest.TestSuite(l) | 112 return unittest.TestSuite(l) |
| 104 | 113 |
| 105 # vim: set filetype=python ts=4 sw=4 et si | 114 # vim: set filetype=python ts=4 sw=4 et si |
