Code

Add config-option "nosy" to messages_to_author setting in [nosy] section
[roundup.git] / test / test_schema.py
index d6c9e6455057ceeb3f8b684664af5f34499b301e..a1f7359fe38f949751cc4f870652bc624fd55f94 100644 (file)
 # FOR A PARTICULAR PURPOSE.  THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-# 
-# $Id: test_schema.py,v 1.13 2003-10-25 22:53:26 richard Exp $ 
+#
+# $Id: test_schema.py,v 1.15 2004-10-16 12:43:11 a1s Exp $
 
 import unittest, os, shutil
 
+from roundup import configuration
 from roundup.backends import back_anydbm
 from roundup.hyperdb import String, Password, Link, Multilink, Date, \
     Interval
 
-class config:
-    DATABASE='_test_dir'
-    MAILHOST = 'localhost'
-    MAIL_DOMAIN = 'fill.me.in.'
-    NSTANCE_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'
+config = configuration.CoreConfig()
+config.DATABASE = "_test_dir"
 
 class SchemaTestCase(unittest.TestCase):
     def setUp(self):
@@ -49,7 +39,7 @@ class SchemaTestCase(unittest.TestCase):
 
     def tearDown(self):
         self.db.close()
-        shutil.rmtree('_test_dir')
+        shutil.rmtree(config.DATABASE)
 
     def testA_Status(self):
         status = back_anydbm.Class(self.db, "status", name=String())
@@ -95,4 +85,4 @@ if __name__ == '__main__':
     unittest.main(testRunner=runner)
 
 
-# vim: set filetype=python ts=4 sw=4 et si
+# vim: set filetype=python sts=4 sw=4 et si :