Mercurial > p > roundup > code
diff test/test_db.py @ 859:eb924e614934
Fixes for the metakit backend
(removed the cut-n-paste IssueClass, removed
a special case for it in testing)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 14 Jul 2002 02:16:29 +0000 |
| parents | 2dd862af72ee |
| children | 2df32a73eb45 |
line wrap: on
line diff
--- a/test/test_db.py Sun Jul 14 02:05:54 2002 +0000 +++ b/test/test_db.py Sun Jul 14 02:16:29 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_db.py,v 1.27 2002-07-14 02:05:54 richard Exp $ +# $Id: test_db.py,v 1.28 2002-07-14 02:16:29 richard Exp $ import unittest, os, shutil @@ -457,19 +457,6 @@ self.db.file.create(name="test", type="text/plain", content="hi") self.db.rollback() - def testNewProperty(self): - ' make sure a new property is added ok ' - self.db.issue.create(title="spam", status='1') - self.db.issue.addprop(fixer=Link("user")) - props = self.db.issue.getprops() - keys = props.keys() - keys.sort() - # metakit _base_ Class has the activity, creation and creator too - self.assertEqual(keys, ['activity', 'creation', 'creator', - 'deadline', 'files', 'fixer', 'foo', 'id', 'nosy', 'status', - 'title']) - self.assertEqual(self.db.issue.get('1', "fixer"), None) - class metakitReadOnlyDBTestCase(anydbmReadOnlyDBTestCase): def setUp(self): from roundup.backends import metakit @@ -517,6 +504,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.27 2002/07/14 02:05:54 richard +# . all storage-specific code (ie. backend) is now implemented by the backends +# # Revision 1.26 2002/07/11 01:11:03 richard # Added metakit backend to the db tests and fixed the more easily fixable test # failures.
