Mercurial > p > roundup > code
diff test/test_memorydb.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 | 63c79c0992ae |
| children | 62de601bdf6f |
line wrap: on
line diff
--- a/test/test_memorydb.py Thu Aug 20 18:15:23 2015 +1000 +++ b/test/test_memorydb.py Fri Aug 21 13:08:02 2015 +1000 @@ -55,19 +55,5 @@ setupSchema(self.db, 1, self.module) self.sessions = self.db.sessions -def test_suite(): - suite = unittest.TestSuite() - print 'Including memorydb tests' - suite.addTest(unittest.makeSuite(memorydbDBTest)) - suite.addTest(unittest.makeSuite(memorydbROTest)) - suite.addTest(unittest.makeSuite(memorydbSchemaTest)) - suite.addTest(unittest.makeSuite(memorydbSessionTest)) - return suite - -if __name__ == '__main__': - runner = unittest.TextTestRunner() - unittest.main(testRunner=runner) - - # vim: set filetype=python ts=4 sw=4 et si
