changeset 2823:d41f38de578e

remove unused imports: shutil, Indexer; use config object from db_test_base
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 24 Oct 2004 10:16:13 +0000
parents f0b887a5e47b
children 629491ec0379
files test/benchmark.py
diffstat 1 files changed, 3 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/test/benchmark.py	Sun Oct 24 10:01:58 2004 +0000
+++ b/test/benchmark.py	Sun Oct 24 10:16:13 2004 +0000
@@ -1,9 +1,10 @@
-import sys, os, time, shutil
+import sys, os, time
 
 from roundup.hyperdb import String, Password, Link, Multilink, Date, \
     Interval, DatabaseError, Boolean, Number
 from roundup import date, password
-from roundup.indexer import Indexer
+
+from db_test_base import config
 
 def setupSchema(db, module):
     status = module.Class(db, "status", name=String())
@@ -21,21 +22,6 @@
     db.post_init()
     db.commit()
 
-class config:
-    DATABASE='_benchmark'
-    GADFLY_DATABASE = ('test', DATABASE)
-    MAILHOST = 'localhost'
-    MAIL_DOMAIN = 'fill.me.in.'
-    TRACKER_NAME = 'Roundup issue tracker'
-    TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN
-    TRACKER_WEB = 'http://some.useful.url/'
-    ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN
-    FILTER_POSITION = 'bottom'      # one of 'top', 'bottom', 'top and bottom'
-    ANONYMOUS_ACCESS = 'deny'       # either 'deny' or 'allow'
-    ANONYMOUS_REGISTER = 'deny'     # either 'deny' or 'allow'
-    MESSAGES_TO_AUTHOR = 'no'       # either 'yes' or 'no'
-    EMAIL_SIGNATURE_POSITION = 'bottom'
-
 def main(backendname, time=time.time, numissues=10):
     try:
         exec('from roundup.backends import %s as backend'%backendname)

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