Mercurial > p > roundup > code
comparison test/__init__.py @ 604:13719594278b config-0-4-0-branch
I've re-worked the config structure a little so it's simpler
(one less file) and added a unit test so we can be sure it's working.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 06 Feb 2002 07:11:13 +0000 |
| parents | c242455d9b46 |
| children |
comparison
equal
deleted
inserted
replaced
| 603:986354c4b1fb | 604:13719594278b |
|---|---|
| 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: __init__.py,v 1.9.2.1 2002-02-06 04:05:55 richard Exp $ | 18 # $Id: __init__.py,v 1.9.2.2 2002-02-06 07:11:13 richard Exp $ |
| 19 | 19 |
| 20 import unittest | 20 import unittest |
| 21 import os, tempfile | 21 import os, tempfile |
| 22 os.environ['SENDMAILDEBUG'] = tempfile.mktemp() | 22 os.environ['SENDMAILDEBUG'] = tempfile.mktemp() |
| 23 | 23 |
| 24 import test_dates, test_schema, test_db, test_multipart, test_mailsplit | 24 import test_dates, test_schema, test_db, test_multipart, test_mailsplit |
| 25 import test_init, test_token, test_mailgw, test_htmltemplate | 25 import test_init, test_token, test_mailgw, test_htmltemplate, test_config |
| 26 | 26 |
| 27 def go(): | 27 def go(): |
| 28 suite = unittest.TestSuite(( | 28 suite = unittest.TestSuite(( |
| 29 test_dates.suite(), | 29 test_config.suite(), |
| 30 test_schema.suite(), | 30 # test_dates.suite(), |
| 31 test_db.suite(), | 31 # test_schema.suite(), |
| 32 # test_db.suite(), | |
| 32 test_init.suite(), | 33 test_init.suite(), |
| 33 test_multipart.suite(), | 34 # test_multipart.suite(), |
| 34 test_mailsplit.suite(), | 35 # test_mailsplit.suite(), |
| 35 test_mailgw.suite(), | 36 # test_mailgw.suite(), |
| 36 test_token.suite(), | 37 # test_token.suite(), |
| 37 test_htmltemplate.suite(), | 38 # test_htmltemplate.suite(), |
| 38 )) | 39 )) |
| 39 runner = unittest.TextTestRunner() | 40 runner = unittest.TextTestRunner() |
| 40 result = runner.run(suite) | 41 result = runner.run(suite) |
| 41 return result.wasSuccessful() | 42 return result.wasSuccessful() |
| 42 | 43 |
| 43 # | 44 # |
| 44 # $Log: not supported by cvs2svn $ | 45 # $Log: not supported by cvs2svn $ |
| 46 # Revision 1.9.2.1 2002/02/06 04:05:55 richard | |
| 47 # Brought the config branch up to date with HEAD | |
| 48 # | |
| 45 # Revision 1.15 2002/01/22 00:12:20 richard | 49 # Revision 1.15 2002/01/22 00:12:20 richard |
| 46 # oops | 50 # oops |
| 47 # | 51 # |
| 48 # Revision 1.14 2002/01/22 00:12:06 richard | 52 # Revision 1.14 2002/01/22 00:12:06 richard |
| 49 # Wrote more unit tests for htmltemplate, and while I was at it, I polished | 53 # Wrote more unit tests for htmltemplate, and while I was at it, I polished |
