comparison test/db_test_base.py @ 3156:e1da7b5b04ab maint-0.8

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Mon, 14 Feb 2005 02:55:31 +0000
parents 0a652c47bc9e
children 749717f01830
comparison
equal deleted inserted replaced
3154:62b1a54107e6 3156:e1da7b5b04ab
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: db_test_base.py,v 1.55.2.3 2005-02-13 22:40:53 richard Exp $ 18 # $Id: db_test_base.py,v 1.55.2.4 2005-02-14 02:55:31 richard Exp $
19 19
20 import unittest, os, shutil, errno, imp, sys, time, pprint 20 import unittest, os, shutil, errno, imp, sys, time, pprint
21 21
22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \
23 Interval, DatabaseError, Boolean, Number, Node 23 Interval, DatabaseError, Boolean, Number, Node
36 config.MAIL_DOMAIN = "your.tracker.email.domain.example" 36 config.MAIL_DOMAIN = "your.tracker.email.domain.example"
37 config.TRACKER_WEB = "http://tracker.example/cgi-bin/roundup.cgi/bugs/" 37 config.TRACKER_WEB = "http://tracker.example/cgi-bin/roundup.cgi/bugs/"
38 # uncomment the following to have excessive debug output from test cases 38 # uncomment the following to have excessive debug output from test cases
39 # FIXME: tracker logging level should be increased by -v arguments 39 # FIXME: tracker logging level should be increased by -v arguments
40 # to 'run_tests.py' script 40 # to 'run_tests.py' script
41 #config.LOGGING_LEVEL = "DEBUG" 41 config.LOGGING_FILENAME = "/tmp/logfile"
42 #config.init_logging() 42 config.LOGGING_LEVEL = "DEBUG"
43 config.init_logging()
43 44
44 def setupTracker(dirname, backend="anydbm"): 45 def setupTracker(dirname, backend="anydbm"):
45 """Install and initialize new tracker in dirname; return tracker instance. 46 """Install and initialize new tracker in dirname; return tracker instance.
46 47
47 If the directory exists, it is wiped out before the operation. 48 If the directory exists, it is wiped out before the operation.

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