comparison test/__init__.py @ 561:13df980755fa

New tests for htmltemplate (well, it's a beginning)
author Richard Jones <richard@users.sourceforge.net>
date Mon, 21 Jan 2002 11:05:48 +0000
parents 074bac7fc308
children 0f58d6a35a8b
comparison
equal deleted inserted replaced
560:d7b9751f8927 561:13df980755fa
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.12 2002-01-14 06:53:28 richard Exp $ 18 # $Id: __init__.py,v 1.13 2002-01-21 11:05:48 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 result = runner.run(suite) 40 result = runner.run(suite)
40 return result.wasSuccessful() 41 return result.wasSuccessful()
41 42
42 # 43 #
43 # $Log: not supported by cvs2svn $ 44 # $Log: not supported by cvs2svn $
45 # Revision 1.12 2002/01/14 06:53:28 richard
46 # had commented out some tests
47 #
44 # Revision 1.11 2002/01/14 02:20:15 richard 48 # Revision 1.11 2002/01/14 02:20:15 richard
45 # . changed all config accesses so they access either the instance or the 49 # . changed all config accesses so they access either the instance or the
46 # config attriubute on the db. This means that all config is obtained from 50 # config attriubute on the db. This means that all config is obtained from
47 # instance_config instead of the mish-mash of classes. This will make 51 # instance_config instead of the mish-mash of classes. This will make
48 # switching to a ConfigParser setup easier too, I hope. 52 # switching to a ConfigParser setup easier too, I hope.

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