Skip to content

Commit eb35b47

Browse files
author
Alexander Smishlajev
committed
use new config object. fix vim modeline.
1 parent 6c02727 commit eb35b47

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

test/test_schema.py

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,18 @@
1414
# FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17-
#
18-
# $Id: test_schema.py,v 1.13 2003-10-25 22:53:26 richard Exp $
17+
#
18+
# $Id: test_schema.py,v 1.14 2004-09-30 10:34:26 a1s Exp $
1919

2020
import unittest, os, shutil
2121

22+
from roundup import configuration
2223
from roundup.backends import back_anydbm
2324
from roundup.hyperdb import String, Password, Link, Multilink, Date, \
2425
Interval
2526

26-
class config:
27-
DATABASE='_test_dir'
28-
MAILHOST = 'localhost'
29-
MAIL_DOMAIN = 'fill.me.in.'
30-
NSTANCE_NAME = 'Roundup issue tracker'
31-
TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN
32-
TRACKER_WEB = 'http://some.useful.url/'
33-
ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN
34-
FILTER_POSITION = 'bottom' # one of 'top', 'bottom', 'top and bottom'
35-
ANONYMOUS_ACCESS = 'deny' # either 'deny' or 'allow'
36-
ANONYMOUS_REGISTER = 'deny' # either 'deny' or 'allow'
37-
MESSAGES_TO_AUTHOR = 'no' # either 'yes' or 'no'
38-
EMAIL_SIGNATURE_POSITION = 'bottom'
27+
config = configuration.CoreConfig()
28+
config.DATABASE = "_test_dir"
3929

4030
class SchemaTestCase(unittest.TestCase):
4131
def setUp(self):
@@ -95,4 +85,4 @@ def test_suite():
9585
unittest.main(testRunner=runner)
9686

9787

98-
# vim: set filetype=python ts=4 sw=4 et si
88+
# vim: set filetype=python sts=4 sw=4 et si :

0 commit comments

Comments
 (0)