diff test/memorydb.py @ 4358:887a153cedec

The email for the first message on an issue... ...was sometimes having its In-Reply-To set to itself (thanks Eric Kow). Also fix roundupdb IssueClass code to use the variable "issueid" instead of the braindead "nodeid".
author Richard Jones <richard@users.sourceforge.net>
date Tue, 23 Feb 2010 03:20:17 +0000
parents 23bf9290140a
children 355cd8fdeb32
line wrap: on
line diff
--- a/test/memorydb.py	Mon Feb 22 05:26:57 2010 +0000
+++ b/test/memorydb.py	Tue Feb 23 03:20:17 2010 +0000
@@ -16,17 +16,19 @@
 from roundup.hyperdb import *
 from roundup.support import ensureParentsExist
 
-def new_config():
+def new_config(debug=False):
     config = configuration.CoreConfig()
     config.DATABASE = "db"
     #config.logging = MockNull()
     # these TRACKER_WEB and MAIL_DOMAIN values are used in mailgw tests
+    if debug:
+        config.LOGGING_LEVEL = "DEBUG"
     config.MAIL_DOMAIN = "your.tracker.email.domain.example"
     config.TRACKER_WEB = "http://tracker.example/cgi-bin/roundup.cgi/bugs/"
     return config
 
-def create(journaltag, create=True):
-    db = Database(new_config(), journaltag)
+def create(journaltag, create=True, debug=False):
+    db = Database(new_config(debug), journaltag)
 
     # load standard schema
     schema = os.path.join(os.path.dirname(__file__),

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