Skip to content

Commit 2e73c6e

Browse files
author
Alexander Smishlajev
committed
remove unused imports: shutil, Indexer;
use config object from db_test_base
1 parent 0a0445c commit 2e73c6e

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

test/benchmark.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import sys, os, time, shutil
1+
import sys, os, time
22

33
from roundup.hyperdb import String, Password, Link, Multilink, Date, \
44
Interval, DatabaseError, Boolean, Number
55
from roundup import date, password
6-
from roundup.indexer import Indexer
6+
7+
from db_test_base import config
78

89
def 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-
3925
def main(backendname, time=time.time, numissues=10):
4026
try:
4127
exec('from roundup.backends import %s as backend'%backendname)

0 commit comments

Comments
 (0)