Mercurial > p > roundup > code
comparison test/__init__.py @ 475:a1a44636bace
Fix breakage caused by transaction changes.
Sorry for the huge checkin message - I was only intending to implement
[SF#496356] but I found a number of places where things had been
broken by transactions:
. modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename
for _all_ roundup-generated smtp messages to be sent to.
. the transaction cache had broken the roundupdb.Class set() reactors
. newly-created author users in the mailgw weren't being committed to the db
Stuff that made it into CHANGES.txt (ie. the stuff I was actually working
on when I found that stuff :):
. [SF#496356] Use threading in messages
. detectors were being registered multiple times
. added tests for mailgw
. much better attaching of erroneous messages in the mail gateway
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 02 Jan 2002 02:31:38 +0000 |
| parents | 9f7320624bc2 |
| children | a090b3873d82 c242455d9b46 |
comparison
equal
deleted
inserted
replaced
| 474:ef06a66a0b72 | 475:a1a44636bace |
|---|---|
| 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.8 2001-12-31 05:09:20 richard Exp $ | 18 # $Id: __init__.py,v 1.9 2002-01-02 02:31:38 richard Exp $ |
| 19 | 19 |
| 20 import unittest | 20 import unittest |
| 21 import os, tempfile | |
| 22 os.environ['SENDMAILDEBUG'] = tempfile.mktemp() | |
| 21 | 23 |
| 22 import test_dates, test_schema, test_db, test_multipart, test_mailsplit | 24 import test_dates, test_schema, test_db, test_multipart, test_mailsplit |
| 23 import test_init, test_token | 25 import test_init, test_token, test_mailgw |
| 24 | 26 |
| 25 def go(): | 27 def go(): |
| 26 suite = unittest.TestSuite(( | 28 suite = unittest.TestSuite(( |
| 27 test_dates.suite(), | 29 test_dates.suite(), |
| 28 test_schema.suite(), | 30 test_schema.suite(), |
| 29 test_db.suite(), | 31 test_db.suite(), |
| 30 test_init.suite(), | 32 test_init.suite(), |
| 31 test_multipart.suite(), | 33 test_multipart.suite(), |
| 32 test_mailsplit.suite(), | 34 test_mailsplit.suite(), |
| 35 test_mailgw.suite(), | |
| 33 test_token.suite(), | 36 test_token.suite(), |
| 34 )) | 37 )) |
| 35 runner = unittest.TextTestRunner() | 38 runner = unittest.TextTestRunner() |
| 36 runner.run(suite) | 39 runner.run(suite) |
| 37 | 40 |
| 38 # | 41 # |
| 39 # $Log: not supported by cvs2svn $ | 42 # $Log: not supported by cvs2svn $ |
| 43 # Revision 1.8 2001/12/31 05:09:20 richard | |
| 44 # Added better tokenising to roundup-admin - handles spaces and stuff. Can | |
| 45 # use quoting or backslashes. See the roundup.token pydoc. | |
| 46 # | |
| 40 # Revision 1.7 2001/08/07 00:24:43 richard | 47 # Revision 1.7 2001/08/07 00:24:43 richard |
| 41 # stupid typo | 48 # stupid typo |
| 42 # | 49 # |
| 43 # Revision 1.6 2001/08/07 00:15:51 richard | 50 # Revision 1.6 2001/08/07 00:15:51 richard |
| 44 # Added the copyright/license notice to (nearly) all files at request of | 51 # Added the copyright/license notice to (nearly) all files at request of |
