comparison test/__init__.py @ 483:a090b3873d82

make setup abort if tests fail
author Richard Jones <richard@users.sourceforge.net>
date Sat, 05 Jan 2002 02:09:46 +0000
parents a1a44636bace
children dce4c75bef5a
comparison
equal deleted inserted replaced
478:7b5d63306bc9 483:a090b3873d82
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.10 2002-01-05 02:09:46 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
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 )) 37 ))
38 runner = unittest.TextTestRunner() 38 runner = unittest.TextTestRunner()
39 runner.run(suite) 39 result = runner.run(suite)
40 return result.wasSuccessful()
40 41
41 # 42 #
42 # $Log: not supported by cvs2svn $ 43 # $Log: not supported by cvs2svn $
44 # Revision 1.9 2002/01/02 02:31:38 richard
45 # Sorry for the huge checkin message - I was only intending to implement #496356
46 # but I found a number of places where things had been broken by transactions:
47 # . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename
48 # for _all_ roundup-generated smtp messages to be sent to.
49 # . the transaction cache had broken the roundupdb.Class set() reactors
50 # . newly-created author users in the mailgw weren't being committed to the db
51 #
52 # Stuff that made it into CHANGES.txt (ie. the stuff I was actually working
53 # on when I found that stuff :):
54 # . #496356 ] Use threading in messages
55 # . detectors were being registered multiple times
56 # . added tests for mailgw
57 # . much better attaching of erroneous messages in the mail gateway
58 #
43 # Revision 1.8 2001/12/31 05:09:20 richard 59 # Revision 1.8 2001/12/31 05:09:20 richard
44 # Added better tokenising to roundup-admin - handles spaces and stuff. Can 60 # Added better tokenising to roundup-admin - handles spaces and stuff. Can
45 # use quoting or backslashes. See the roundup.token pydoc. 61 # use quoting or backslashes. See the roundup.token pydoc.
46 # 62 #
47 # Revision 1.7 2001/08/07 00:24:43 richard 63 # Revision 1.7 2001/08/07 00:24:43 richard

Roundup Issue Tracker: http://roundup-tracker.org/