Mercurial > p > roundup > code
comparison test/test_init.py @ 1528:96cd422532ef
bye bye gadfly - you served your purpose well [SF#701127]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 18 Mar 2003 00:50:24 +0000 |
| parents | ca3e0e2320be |
| children | 4074e2336eed |
comparison
equal
deleted
inserted
replaced
| 1525:c006e8166f81 | 1528:96cd422532ef |
|---|---|
| 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.21 2003-02-28 03:33:25 richard Exp $ | 18 # $Id: test_init.py,v 1.22 2003-03-18 00:50:24 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 |
| 76 backend = 'bsddb3' | 76 backend = 'bsddb3' |
| 77 | 77 |
| 78 class metakitClassicTestCase(ClassicTestCase): | 78 class metakitClassicTestCase(ClassicTestCase): |
| 79 backend = 'metakit' | 79 backend = 'metakit' |
| 80 | 80 |
| 81 class gadflyClassicTestCase(ClassicTestCase): | 81 class mysqlClassicTestCase(ClassicTestCase): |
| 82 backend = 'gadfly' | 82 backend = 'mysql' |
| 83 | 83 |
| 84 class sqliteClassicTestCase(ClassicTestCase): | 84 class sqliteClassicTestCase(ClassicTestCase): |
| 85 backend = 'sqlite' | 85 backend = 'sqlite' |
| 86 | 86 |
| 87 def suite(): | 87 def suite(): |
| 94 l.append(unittest.makeSuite(bsddbClassicTestCase, 'test')) | 94 l.append(unittest.makeSuite(bsddbClassicTestCase, 'test')) |
| 95 if hasattr(backends, 'bsddb3'): | 95 if hasattr(backends, 'bsddb3'): |
| 96 l.append(unittest.makeSuite(bsddb3ClassicTestCase, 'test')) | 96 l.append(unittest.makeSuite(bsddb3ClassicTestCase, 'test')) |
| 97 if hasattr(backends, 'metakit'): | 97 if hasattr(backends, 'metakit'): |
| 98 l.append(unittest.makeSuite(metakitClassicTestCase, 'test')) | 98 l.append(unittest.makeSuite(metakitClassicTestCase, 'test')) |
| 99 if hasattr(backends, 'gadfly'): | 99 if hasattr(backends, 'mysql'): |
| 100 l.append(unittest.makeSuite(gadflyClassicTestCase, 'test')) | 100 l.append(unittest.makeSuite(mysqlClassicTestCase, 'test')) |
| 101 if hasattr(backends, 'sqlite'): | 101 if hasattr(backends, 'sqlite'): |
| 102 l.append(unittest.makeSuite(sqliteClassicTestCase, 'test')) | 102 l.append(unittest.makeSuite(sqliteClassicTestCase, 'test')) |
| 103 | 103 |
| 104 return unittest.TestSuite(l) | 104 return unittest.TestSuite(l) |
| 105 | 105 |
