Code

4e2db0ce947ee9170048d71a4593c156da9389ca
[roundup.git] / test / __init__.py
1 #
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
3 # This module is free software, and you may redistribute it and/or modify
4 # under the same terms as Python, so long as this copyright message and
5 # disclaimer are retained in their original form.
6 #
7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
10 # POSSIBILITY OF SUCH DAMAGE.
11 #
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
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"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17
18 # $Id: __init__.py,v 1.11 2002-01-14 02:20:15 richard Exp $
20 import unittest
21 import os, tempfile
22 os.environ['SENDMAILDEBUG'] = tempfile.mktemp()
24 import test_dates, test_schema, test_db, test_multipart, test_mailsplit
25 import test_init, test_token, test_mailgw
27 def go():
28     suite = unittest.TestSuite((
29 #        test_dates.suite(),
30 #        test_schema.suite(),
31         test_db.suite(),
32 #        test_init.suite(),
33 #        test_multipart.suite(),
34 #        test_mailsplit.suite(),
35         test_mailgw.suite(),
36 #        test_token.suite(),
37     ))
38     runner = unittest.TextTestRunner()
39     result = runner.run(suite)
40     return result.wasSuccessful()
42 #
43 # $Log: not supported by cvs2svn $
44 # Revision 1.10  2002/01/05 02:09:46  richard
45 # make setup abort if tests fail
46 #
47 # Revision 1.9  2002/01/02 02:31:38  richard
48 # Sorry for the huge checkin message - I was only intending to implement #496356
49 # but I found a number of places where things had been broken by transactions:
50 #  . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename
51 #    for _all_ roundup-generated smtp messages to be sent to.
52 #  . the transaction cache had broken the roundupdb.Class set() reactors
53 #  . newly-created author users in the mailgw weren't being committed to the db
54 #
55 # Stuff that made it into CHANGES.txt (ie. the stuff I was actually working
56 # on when I found that stuff :):
57 #  . #496356 ] Use threading in messages
58 #  . detectors were being registered multiple times
59 #  . added tests for mailgw
60 #  . much better attaching of erroneous messages in the mail gateway
61 #
62 # Revision 1.8  2001/12/31 05:09:20  richard
63 # Added better tokenising to roundup-admin - handles spaces and stuff. Can
64 # use quoting or backslashes. See the roundup.token pydoc.
65 #
66 # Revision 1.7  2001/08/07 00:24:43  richard
67 # stupid typo
68 #
69 # Revision 1.6  2001/08/07 00:15:51  richard
70 # Added the copyright/license notice to (nearly) all files at request of
71 # Bizar Software.
72 #
73 # Revision 1.5  2001/08/05 07:45:27  richard
74 # Added tests for instance initialisation
75 #
76 # Revision 1.4  2001/08/03 07:18:22  richard
77 # Implemented correct mail splitting (was taking a shortcut). Added unit
78 # tests. Also snips signatures now too.
79 #
80 # Revision 1.3  2001/07/29 07:01:39  richard
81 # Added vim command to all source so that we don't get no steenkin' tabs :)
82 #
83 # Revision 1.2  2001/07/28 06:43:02  richard
84 # Multipart message class has the getPart method now. Added some tests for it.
85 #
86 # Revision 1.1  2001/07/27 06:55:07  richard
87 # moving tests -> test
88 #
89 # Revision 1.3  2001/07/25 04:34:31  richard
90 # Added id and log to tests files...
91 #
92 #
93 # vim: set filetype=python ts=4 sw=4 et si