Mercurial > p > roundup > code
comparison test/__init__.py @ 602:c242455d9b46 config-0-4-0-branch
Brought the config branch up to date with HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 06 Feb 2002 04:05:55 +0000 |
| parents | a1a44636bace |
| children | 13719594278b |
comparison
equal
deleted
inserted
replaced
| 601:912029653c1c | 602:c242455d9b46 |
|---|---|
| 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 2002-01-02 02:31:38 richard Exp $ | 18 # $Id: __init__.py,v 1.9.2.1 2002-02-06 04:05:55 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 | 25 import test_init, test_token, test_mailgw, test_htmltemplate |
| 26 | 26 |
| 27 def go(): | 27 def go(): |
| 28 suite = unittest.TestSuite(( | 28 suite = unittest.TestSuite(( |
| 29 test_dates.suite(), | 29 test_dates.suite(), |
| 30 test_schema.suite(), | 30 test_schema.suite(), |
| 32 test_init.suite(), | 32 test_init.suite(), |
| 33 test_multipart.suite(), | 33 test_multipart.suite(), |
| 34 test_mailsplit.suite(), | 34 test_mailsplit.suite(), |
| 35 test_mailgw.suite(), | 35 test_mailgw.suite(), |
| 36 test_token.suite(), | 36 test_token.suite(), |
| 37 test_htmltemplate.suite(), | |
| 37 )) | 38 )) |
| 38 runner = unittest.TextTestRunner() | 39 runner = unittest.TextTestRunner() |
| 39 runner.run(suite) | 40 result = runner.run(suite) |
| 41 return result.wasSuccessful() | |
| 40 | 42 |
| 41 # | 43 # |
| 42 # $Log: not supported by cvs2svn $ | 44 # $Log: not supported by cvs2svn $ |
| 45 # Revision 1.15 2002/01/22 00:12:20 richard | |
| 46 # oops | |
| 47 # | |
| 48 # 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 | |
| 50 # off the implementation of some of the functions so they behave sanely. | |
| 51 # | |
| 52 # Revision 1.13 2002/01/21 11:05:48 richard | |
| 53 # New tests for htmltemplate (well, it's a beginning) | |
| 54 # | |
| 55 # Revision 1.12 2002/01/14 06:53:28 richard | |
| 56 # had commented out some tests | |
| 57 # | |
| 58 # Revision 1.11 2002/01/14 02:20:15 richard | |
| 59 # . changed all config accesses so they access either the instance or the | |
| 60 # config attriubute on the db. This means that all config is obtained from | |
| 61 # instance_config instead of the mish-mash of classes. This will make | |
| 62 # switching to a ConfigParser setup easier too, I hope. | |
| 63 # | |
| 64 # At a minimum, this makes migration a _little_ easier (a lot easier in the | |
| 65 # 0.5.0 switch, I hope!) | |
| 66 # | |
| 67 # Revision 1.10 2002/01/05 02:09:46 richard | |
| 68 # make setup abort if tests fail | |
| 69 # | |
| 70 # Revision 1.9 2002/01/02 02:31:38 richard | |
| 71 # Sorry for the huge checkin message - I was only intending to implement #496356 | |
| 72 # but I found a number of places where things had been broken by transactions: | |
| 73 # . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename | |
| 74 # for _all_ roundup-generated smtp messages to be sent to. | |
| 75 # . the transaction cache had broken the roundupdb.Class set() reactors | |
| 76 # . newly-created author users in the mailgw weren't being committed to the db | |
| 77 # | |
| 78 # Stuff that made it into CHANGES.txt (ie. the stuff I was actually working | |
| 79 # on when I found that stuff :): | |
| 80 # . #496356 ] Use threading in messages | |
| 81 # . detectors were being registered multiple times | |
| 82 # . added tests for mailgw | |
| 83 # . much better attaching of erroneous messages in the mail gateway | |
| 84 # | |
| 43 # Revision 1.8 2001/12/31 05:09:20 richard | 85 # Revision 1.8 2001/12/31 05:09:20 richard |
| 44 # Added better tokenising to roundup-admin - handles spaces and stuff. Can | 86 # Added better tokenising to roundup-admin - handles spaces and stuff. Can |
| 45 # use quoting or backslashes. See the roundup.token pydoc. | 87 # use quoting or backslashes. See the roundup.token pydoc. |
| 46 # | 88 # |
| 47 # Revision 1.7 2001/08/07 00:24:43 richard | 89 # Revision 1.7 2001/08/07 00:24:43 richard |
