Mercurial > p > roundup > code
comparison test/test_postgresql.py @ 5037:364c54991861
Remove unneeded TestSuite code from tests
The TestSuite code is no longer needed now that we are using py.test
which can automatically discover tests
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Fri, 21 Aug 2015 13:08:02 +1000 |
| parents | 380d8d8b30a3 |
| children | c977f3530944 |
comparison
equal
deleted
inserted
replaced
| 5036:380d8d8b30a3 | 5037:364c54991861 |
|---|---|
| 194 RDBMSTest.setUp(self) | 194 RDBMSTest.setUp(self) |
| 195 def tearDown(self): | 195 def tearDown(self): |
| 196 RDBMSTest.tearDown(self) | 196 RDBMSTest.tearDown(self) |
| 197 postgresqlOpener.tearDown(self) | 197 postgresqlOpener.tearDown(self) |
| 198 | 198 |
| 199 def test_suite(): | |
| 200 suite = unittest.TestSuite() | |
| 201 if not have_backend('postgresql'): | |
| 202 print "Skipping postgresql tests" | |
| 203 return suite | |
| 204 | |
| 205 # make sure we start with a clean slate | |
| 206 if postgresqlOpener.module.db_exists(config): | |
| 207 postgresqlOpener.module.db_nuke(config, 1) | |
| 208 | |
| 209 # TODO: Check if we can run postgresql tests | |
| 210 print 'Including postgresql tests' | |
| 211 suite.addTest(unittest.makeSuite(postgresqlDBTest)) | |
| 212 suite.addTest(unittest.makeSuite(postgresqlROTest)) | |
| 213 suite.addTest(unittest.makeSuite(postgresqlSchemaTest)) | |
| 214 suite.addTest(unittest.makeSuite(postgresqlClassicInitTest)) | |
| 215 suite.addTest(unittest.makeSuite(postgresqlSessionTest)) | |
| 216 suite.addTest(unittest.makeSuite(postgresqlConcurrencyTest)) | |
| 217 suite.addTest(unittest.makeSuite(postgresqlJournalTest)) | |
| 218 suite.addTest(unittest.makeSuite(postgresqlHTMLItemTest)) | |
| 219 suite.addTest(unittest.makeSuite(postgresqlFilterCacheTest)) | |
| 220 return suite | |
| 221 | |
| 222 # vim: set et sts=4 sw=4 : | 199 # vim: set et sts=4 sw=4 : |
