Mercurial > p > roundup > code
diff test/test_dates.py @ 1873:f63aa57386b0
Backend improvements.
- using Zope3's test runner now, allowing GC checks, nicer controls and
coverage analysis
- all RDMBS backends now have indexes on several columns
- added testing of schema mutation, fixed rdbms backends handling of a
couple of cases
- !BETA! added postgresql backend, needs work !BETA!
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sat, 25 Oct 2003 22:53:26 +0000 |
| parents | cc96bf971b33 |
| children | dc55a195722d |
line wrap: on
line diff
--- a/test/test_dates.py Sat Oct 25 12:33:11 2003 +0000 +++ b/test/test_dates.py Sat Oct 25 22:53:26 2003 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_dates.py,v 1.24 2003-04-22 20:53:54 kedder Exp $ +# $Id: test_dates.py,v 1.25 2003-10-25 22:53:26 richard Exp $ import unittest, time @@ -256,8 +256,13 @@ ae(str(Interval('+1w', add_granularity=1)), '+ 14d') ae(str(Interval('-2m 3w', add_granularity=1)), '- 2m 14d') -def suite(): - return unittest.makeSuite(DateTestCase, 'test') +def test_suite(): + suite = unittest.TestSuite() + suite.addTest(unittest.makeSuite(DateTestCase)) + return suite +if __name__ == '__main__': + runner = unittest.TextTestRunner() + unittest.main(testRunner=runner) # vim: set filetype=python ts=4 sw=4 et si
