1- import sys , os , time , shutil
1+ import sys , os , time
22
33from roundup .hyperdb import String , Password , Link , Multilink , Date , \
44 Interval , DatabaseError , Boolean , Number
55from roundup import date , password
6- from roundup .indexer import Indexer
6+
7+ from db_test_base import config
78
89def setupSchema (db , module ):
910 status = module .Class (db , "status" , name = String ())
@@ -21,21 +22,6 @@ def setupSchema(db, module):
2122 db .post_init ()
2223 db .commit ()
2324
24- class config :
25- DATABASE = '_benchmark'
26- GADFLY_DATABASE = ('test' , DATABASE )
27- MAILHOST = 'localhost'
28- MAIL_DOMAIN = 'fill.me.in.'
29- TRACKER_NAME = 'Roundup issue tracker'
30- TRACKER_EMAIL = 'issue_tracker@%s' % MAIL_DOMAIN
31- TRACKER_WEB = 'http://some.useful.url/'
32- ADMIN_EMAIL = 'roundup-admin@%s' % MAIL_DOMAIN
33- FILTER_POSITION = 'bottom' # one of 'top', 'bottom', 'top and bottom'
34- ANONYMOUS_ACCESS = 'deny' # either 'deny' or 'allow'
35- ANONYMOUS_REGISTER = 'deny' # either 'deny' or 'allow'
36- MESSAGES_TO_AUTHOR = 'no' # either 'yes' or 'no'
37- EMAIL_SIGNATURE_POSITION = 'bottom'
38-
3925def main (backendname , time = time .time , numissues = 10 ):
4026 try :
4127 exec ('from roundup.backends import %s as backend' % backendname )
0 commit comments